12 SSH
12 SSH
Login as intranet
Su intranet
Mkdir .ssh
exit
3. On Inxclt2,
Login as user 1
Su user1
- Copy the public key into the ~/.ssh/upload_key.pub file on the Inxsrv1
scp ~/.ssh/id_rsa.pub [email protected]:/var/www/intranet.librarypvmtc.vn/.ssh/upload_key.pub
4. On Inxsrv1:
- Login as user intranet
Su intranet
- Copy upload_key.pub to authorized_keys
5. Test result:
- On Inxclt2, login as user1
Su user1
Ssh l intranet 192.168.10.10
- Enter: Skills7 for passphrase
/etc/init.d/ssh restart
Test result:
/etc/init.d/ssh restart
Test result: