![]() |
|
[Guide] Setup SSH ( CentOS Linux ) - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124) +----- Forum: Ep2 Guides (https://lckb.dev/forum/forumdisplay.php?fid=165) +----- Thread: [Guide] Setup SSH ( CentOS Linux ) (/showthread.php?tid=351) |
- Sutz - 11-05-2012 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 - MrBeaN - 11-06-2012 Thanks for this guide MaX i will use your guide to open my ep2 - DeChamp3 - 11-06-2012 how can i find this out Host = vbox lan ip - filix_93 - 11-06-2012 how can i find this out Host = vbox lan ip ifconfig @credit to MaX - DeChamp3 - 11-07-2012 ifconfig @credit to MaX ok one more problem.. how do i save the settings after i added -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT if i close terminal i think it dont save - blade5000 - 11-08-2012 because I can make my ep2 game server in? - DeChamp3 - 11-08-2012 hi winscp says me Newtwork fail.. time limit for connection <.< what can i do? i did it like in your tutorial but stupid winscp dont work - DeChamp3 - 11-09-2012 push - Wizatek - 11-09-2012 ssh server is installed by default when u install CentOS - MrBeaN - 11-09-2012 Wizatek, for Linux in windows, ive downloaded cygwin. What i need to do for start the files of ep2 ? |