Sunday, July 4, 2010

Enable SSH Server on BackTrack

If you need to SSH or SCP to BackTrack box, you need to start the SSH server that comes with Backtrack.

First you need to generate keys. As root, type in the following line
root@bt:~# sshd-generate 
Generating public/private rsa1 key pair.
<--- snip --- >
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.
<--- snip --- >
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.
<--- snip --- >