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
Next revision Both sides next revision
сервис_ssh [2020/06/26 20:22]
val [SSH вместо VPN (привязка к порту сервера)]
сервис_ssh [2021/01/12 10:43]
val [Аутентификация с использованием ключей ssh]
Line 136: Line 136:
 ==== SSH вместо VPN (привязка к порту клиента) ==== ==== SSH вместо VPN (привязка к порту клиента) ====
 <​code>​ <​code>​
 +windows desktop
 Putty Putty
 Session Session
Line 143: Line 144:
   Destination 192.168.100+X.101:​3389   Destination 192.168.100+X.101:​3389
  
-linuxssh -L 3101:​192.168.100+X.101:​3389 192.168.X.10+linux desktop$ ​ssh -L 3101:​192.168.100+X.101:​3389 192.168.X.10
  
 Remote Desktop Connection->​127.0.0.1:​3101 Remote Desktop Connection->​127.0.0.1:​3101
Line 241: Line 242:
 </​code><​code>​ </​code><​code>​
 user1@client1:​~$ ls .ssh/ user1@client1:​~$ ls .ssh/
- 
-user1@client1:​~$ chmod 755 . 
-user1@client1:​~$ chmod 700 .ssh/ 
-user1@client1:​~$ chmod 600 .ssh/​authorized_keys 
 </​code>​ </​code>​
  
Line 253: Line 250:
 <​code>​ <​code>​
 linux$ ssh-copy-id gate linux$ ssh-copy-id gate
 +
 +linux$ ssh-copy-id server
  
 freebsd$ ssh-copy-id -i .ssh/​id_rsa.pub gate freebsd$ ssh-copy-id -i .ssh/​id_rsa.pub gate
Line 285: Line 284:
 ... ...
  
-gate# ssh-add -l+student@client1$ ​ssh-add -l
 ... ...
  
 user1@client1$ ssh gate user1@client1$ ssh gate
 +
 +user1@client1$ ssh server
 </​code>​ </​code>​
  
сервис_ssh.txt · Last modified: 2024/05/15 13:02 by val