Saturday, September 27, 2008

autossh usage example

At host behind the firewall :
autossh -M 20000 -f user@remotehost -R 4567:localhost:22 -nN

At remotehost, will listen to port 4567.
To access the forwarded port , at the remote host :
> ssh user@localhost -p 5678

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...