Enable SSH server on Backtrack 5 r2

The SSH server is pre-installed , we just need to configure it before we can fire it up.
The first thing we need to is generate the ssh keys by running:

root@bt:~# sshd-generate

Generating public/private rsa1 key pair.
<— blablabla — >
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
<— blablabla — >
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
<— blablabla — >

Now that we have generated the ssh keys we canΒ  start the SSH server.

root@bt:~# /etc/init.d/ssh start
* Starting Secure Shell server sshd [ OK ]

You can verify whether the server has started by issuing a netstat command.

root@bt:~# netstat -ntlp

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3690/sshd
<— blablabla —>

To start the SSH server when Backtrack start run:

update-rc.d -f ssh defaults

5 thoughts on “Enable SSH server on Backtrack 5 r2

  1. fsck_y says:

    I have some questions want to ask you, on BackTrack.

    1. back2basic says:

      Please ask… Maybe I’m able to help …

  2. in0cula says:

    useful info, thank you

  3. BrianBlaze says:

    Love it, simple and to the point and worked perfectly πŸ™‚ also to check / start the ssh you can type service ssh status/start/disable/enable whatever.

    Thanks again!

  4. Dineshkumar says:

    Thanks it works nice…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Next article

Goodbye CSC ….