Thursday, November 15, 2007

SSH port forwarding

To forward port from a host inside firewall so that i can access the host from home.

ssh -N -f -R 1234:localhost:22 USER@externalhost

this will forward MYHOST port 22 to port 1234 at the external server side.

From my home :: i access to the externalhost and dothis to access myhost:

ssh -p 1234 USER@localhost

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...