-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenSSL.html
More file actions
175 lines (155 loc) · 5.35 KB
/
OpenSSL.html
File metadata and controls
175 lines (155 loc) · 5.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenSSH — Huffles IT Services</title>
<style>
body {
background-color: #0A0A0A;
color: #FFFFFF;
font-family: 'Segoe UI', sans-serif;
padding: 40px 20px;
text-align: center;
}
h1, h2 {
color: #0F52BA;
margin-bottom: 20px;
}
.table-group {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
max-width: 1200px;
margin: 0 auto 60px;
}
table {
flex: 1 1 300px;
max-width: 400px;
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid #0F52BA;
padding: 12px;
text-align: left;
background-color: #111111;
}
th {
background-color: #0F52BA;
color: #FFFFFF;
}
@media screen and (max-width: 600px) {
.table-group {
flex-direction: column;
align-items: center;
}
table thead {
display: none;
}
table, table tbody, table tr, table td {
display: block;
width: 100%;
}
table tr {
margin-bottom: 20px;
border: 1px solid #0F52BA;
background-color: #111111;
padding: 10px;
}
table td {
text-align: right;
padding-left: 50%;
position: relative;
}
table td::before {
content: attr(data-label);
position: absolute;
left: 10px;
width: 45%;
padding-left: 10px;
font-weight: bold;
text-align: left;
color: #0F52BA;
}
}
footer {
margin-top: 60px;
font-size: 0.9em;
color: #FFFFFF;
}
.back-button {
display: inline-block;
margin-top: 20px;
padding: 12px 24px;
background-color: #0F52BA;
color: #FFFFFF;
text-decoration: none;
border-radius: 6px;
font-weight: bold;
}
.back-button:hover {
background-color: #FFFFFF;
color: #0F52BA;
}
</style>
</head>
<body>
<h1>OpenSSH</h1>
<h2>Secure Shell Reference</h2>
<div class="table-group">
<table>
<thead><tr><th>Basic SSH</th><th>Description</th></tr></thead>
<tbody>
<tr><td data-label="Command">ssh user@host</td><td data-label="Description">Connect to remote host</td></tr>
<tr><td data-label="Command">ssh -p 2222</td><td data-label="Description">Specify custom port</td></tr>
<tr><td data-label="Command">ssh -v</td><td data-label="Description">Verbose connection output</td></tr>
<tr><td data-label="Command">ssh -X</td><td data-label="Description">Enable X11 forwarding</td></tr>
</tbody>
</table>
<table>
<thead><tr><th>Key Management</th><th>Description</th></tr></thead>
<tbody>
<tr><td data-label="Command">ssh-keygen</td><td data-label="Description">Generate SSH key pair</td></tr>
<tr><td data-label="Command">ssh-copy-id</td><td data-label="Description">Copy public key to host</td></tr>
<tr><td data-label="Command">~/.ssh/config</td><td data-label="Description">Client config file</td></tr>
<tr><td data-label="Command">chmod 600 ~/.ssh/id_rsa</td><td data-label="Description">Secure private key</td></tr>
</tbody>
</table>
<table>
<thead><tr><th>File Transfer</th><th>Description</th></tr></thead>
<tbody>
<tr><td data-label="Command">scp file user@host:/path</td><td data-label="Description">Copy file to remote</td></tr>
<tr><td data-label="Command">scp user@host:/path file</td><td data-label="Description">Copy file from remote</td></tr>
<tr><td data-label="Command">rsync -avz</td><td data-label="Description">Sync files over SSH</td></tr>
<tr><td data-label="Command">sftp user@host</td><td data-label="Description">Secure FTP session</td></tr>
</tbody>
</table>
<table>
<thead><tr><th>Tunneling</th><th>Description</th></tr></thead>
<tbody>
<tr><td data-label="Command">ssh -L 8080:localhost:80</td><td data-label="Description">Local port forwarding</td></tr>
<tr><td data-label="Command">ssh -R 2222:localhost:22</td><td data-label="Description">Remote port forwarding</td></tr>
<tr><td data-label="Command">ssh -D 1080</td><td data-label="Description">Dynamic SOCKS proxy</td></tr>
<tr><td data-label="Command">autossh</td><td data-label="Description">Auto-reconnect SSH tunnel</td></tr>
</tbody>
</table>
<table>
<thead><tr><th>Server Config</th><th>Description</th></tr></thead>
<tbody>
<tr><td data-label="Command">/etc/ssh/sshd_config</td><td data-label="Description">Server config file</td></tr>
<tr><td data-label="Command">systemctl restart ssh</td><td data-label="Description">Restart SSH service</td></tr>
<tr><td data-label="Command">PermitRootLogin no</td><td data-label="Description">Disable root login</td></tr>
<tr><td data-label="Command">PasswordAuthentication no</td><td data-label="Description">Enforce key-only login</td></tr>
</tbody>
</table>
</div>
<footer>
<p>© 2025 Huffles IT Services LLC — All rights reserved.</p>
<p>
<a class="back-button" href="Huffles-IT-Services-Code-Reference.html">🖥️ Back to Porch</a>
</p>
</footer>
</body>
</html>