Home > backtrack, Linux, Web Server > ssh on the first use, NetworkError:Connection refused

ssh on the first use, NetworkError:Connection refused

Okay let’s solve the problem.
after installing openssh-server by typing apt-get install openssh-server on linux terminal, you should generate key for authentication for ssh remote login.
root@revolutionaryroad:~#apt-get install openssh-server
Because, if you don’t do that, you can’t connect to your remote server using ssh connection. trust me! :)
it will show pop up windows which can be read as Network Error: Connection refused

all you have to do just like these steps bellow :

root@revolutionaryroad:~#sshd-generate
the command will generate rsa and dsa certificate key which used as an authentication to connect to remote server via ssh.

Then, you have to start your ssh service by typing command /etc/init.d/ssh start on linux terminal
root@revolutionaryroad:~#/etc/init.d/ssh start

If you want to activate ssh service everytime you login into your server,  all you have to do is type command bellow
root@revolutionaryroad:~#update-rc.d -f ssh defaults

done..

Advertisement
  1. No comments yet.
  1. No trackbacks yet.

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.