Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo openvpn --config /home/thanhthu/Abc/gateway-UDP4-4951-thuntt-config.ovpn
- https://www.thuysys.com/server-vps/ssh-toan-tap/ssh-keys-authentication-bao-mat-ket-noi-ssh.html
- https://www.linode.com/community/questions/65/how-do-i-fix-a-no-route-to-host-error
- https://www.tecmint.com/fix-no-route-to-host-ssh-error-in-linux/
- ssh -p 2222 root@192.168.10.119 mkdir -p .ssh
- cat .ssh/id_rsa.pub | ssh -p 2222 root@192.168.10.119 'cat >> .ssh/authorized_keys'
- ssh -p 2222 root@192.168.10.119 'chmod 700 .ssh; chmod 640 .ssh/authorized_keys'
- firewall-cmd --zone=public --permanent --add-port=2222/tcp
- firewall-cmd --zone=public --permanent --remove-port=22/tcp
- firewall-cmd --reload
- cat /home/thanhthu/Desktop/manhbt.pub | ssh -p 2222 root@192.168.10.119 'cat >> .ssh/authorized_keys'
- /home/thanhthu/Desktop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement