Mashine B - Client
On host B do this:
ssh-keygen -t rsa -b 2048 -C "Enibody Name"
After generate key.pub, copy into pashine B with command
ssh-copy-id -i id_rsa.pub user@mashineB
or
scp ~/path to id_rsa.pub username@ip:/home/usenname/.ssh/id_rsa.home.pub
on machine B do this:
cat id_rsa.home.pub >> authorized_keys
Hint2
On the mashine A in .ssh creata file caonfig with text:
Host virtual
HostName 192.168.1.4
Port 22
User username
Няма коментари :
Публикуване на коментар