User Tools

Site Tools


сервис_ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_ssh [2024/02/22 07:51]
val [SSH вместо RCP (SCP)]
сервис_ssh [2024/04/08 15:58]
val [Настройка ssh сервера]
Line 40: Line 40:
 ===== Настройка ssh сервера ===== ===== Настройка ssh сервера =====
 <​code>​ <​code>​
-gate# cat /​etc/​ssh/​sshd_config+gate# cat /​etc/​ssh/​sshd_config.d/my.conf
 </​code><​code>​ </​code><​code>​
-... 
 Port 2222 Port 2222
-...+
 DenyUsers "​user*"​ DenyUsers "​user*"​
-...+
 PermitRootLogin yes PermitRootLogin yes
-...+
 #​KexAlgorithms +diffie-hellman-group1-sha1,​diffie-hellman-group-exchange-sha1 #​KexAlgorithms +diffie-hellman-group1-sha1,​diffie-hellman-group-exchange-sha1
 #​HostkeyAlgorithms +ssh-dss,​ssh-rsa #​HostkeyAlgorithms +ssh-dss,​ssh-rsa
-... 
 </​code>​ </​code>​
  
Line 73: Line 71:
 $ mkdir .ssh/ $ mkdir .ssh/
  
-$ cat .ssh/config+$ cat ~/.ssh/config
 </​code><​code>​ </​code><​code>​
 Host * Host *
Line 228: Line 226:
  
 <​code>​ <​code>​
-node1:~# cat .ssh/config+node1:~# cat ~/.ssh/config
 </​code><​code>​ </​code><​code>​
 Host * Host *
сервис_ssh.txt · Last modified: 2024/04/08 15:58 by val