port 22: Connection refused

Centos 6.4

I solved this by :

1. install sshd

yum install open-sshserver

2. start service sshd

/sbin/service sshd start

 

Kalau muncul bahwa user tidak ada dalam sudoers file, maka tambahkan usernya di sudoers file :

1. buka file sudoers

vi /etc/sudoers

2. di bawah tulisan  ## Allow root to run any commands anywhere, ketik seperti di bawah ini (mawar adalah contoh username) :
mawar   ALL=(ALL)       ALL

 

That’s it. good luck!

 

reference :

http://www.techotopia.com/index.php/Configuring_CentOS_Remote_Access_using_SSH

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s