11-05-2012, 07:02 PM
OpenSSH Installations under CentOS Linux
To install the server type:
yum -y install openssh-server
Start the service:
chkconfig sshd on
service sshd start
Make sure port 22 is opened:
netstat -tulpn | grep :22
Firewall Settings
Edit /etc/sysconfig/iptables (IPv4 firewall),
vi /etc/sysconfig/iptables
Add the line
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Save and close the file. Restart iptables:
service iptables restart
Download 2 for windows to connect to the Linux ssh server
Open WinSCP to be greeted with a login window, so click the NEW button (on the left find Connection -> Tunnel (click the Tunnel) then tick the box to connect through SSH tunnel an fill in the info.
Host = vbox lan ip
User = root
Pass = root password (reverse) if the pre-installed "snapshot" you can download.
Save!
Connect!
If it asks for info again just put the same again an it should connect.
Now you can enjoy easy file send/editing


