[Guide] Setup SSH ( CentOS Linux )
#1


 

 

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

#2
Thanks for this guide MaX i will use your guide to open my ep2

#3

how can i find this out

Host = vbox lan ip

#4


how can i find this out

Host = vbox lan ip

ifconfig

@credit to MaX

#5


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

#6
because I can make my ep2 game server in?

#7

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

#8
push

#9
ssh server is installed by default when u install CentOS

#10
Wizatek, for Linux in windows, ive downloaded cygwin. What i need to do for start the files of ep2 ?



Forum Jump:


Users browsing this thread: 1 Guest(s)