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 [2026/06/24 15:01]
val [SSH вместо VPN (привязка к порту клиента)]
сервис_ssh [2026/09/07 14:13] (current)
val [Настройка ssh клиента]
Line 95: Line 95:
 #        Port 2222 #        Port 2222
 ##        User root ##        User root
 +
 +#Host server
 +#    HostName 192.168.X.10
 +#    User root
 +#    IdentityFile ~/​.ssh/​id_vscode
  
 #Host switch* 192.168.X.5* #Host switch* 192.168.X.5*
Line 155: Line 160:
        ​ForceCommand internal-sftp        ​ForceCommand internal-sftp
 </​code><​code>​ </​code><​code>​
-# chown root ~user1/+# chown root:www-data ~user1/ 
 + 
 +debian13# chmod 755 ~user1/
  
 # mkdir ~user1/​public_html && chown user1:user1 ~user1/​public_html/​ # mkdir ~user1/​public_html && chown user1:user1 ~user1/​public_html/​
Line 195: Line 202:
  
 ==== SSH вместо VPN (привязка к порту сервера) ==== ==== SSH вместо VPN (привязка к порту сервера) ====
 +==== Remote Port Forwarding Tunnel ====
  
   * [[Управление сервисами в Linux]]   * [[Управление сервисами в Linux]]
сервис_ssh.1782302519.txt.gz · Last modified: 2026/06/24 15:01 by val