0x48byte ~ # rm /root/.ssh/known_hosts
0x48byte ~ # setup-sshd;sudo -s
* Generating SSH Keys
Generating public/private rsa1 key pair.
/etc/ssh/ssh_host_key already exists.
Overwrite (y/n)? y
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
ac:e1:c2:5c:57:80:bd:0a:f0:12:44:dc:b3:94:3f:fa root@bt
Generating public/private rsa key pair.
/etc/ssh/ssh_host_rsa_key already exists.
Overwrite (y/n)? y
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.
The key fingerprint is:
b1:be:e4:b3:9b:b8:7b:8c:4d:5e:41:92:c6:c0:7d:15 root@bt
Generating public/private dsa key pair.
/etc/ssh/ssh_host_dsa_key already exists.
Overwrite (y/n)? y
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.
The key fingerprint is:
cc:71:36:9a:88:fb:2f:f0:e8:71:94:5b:ed:8b:ab:7e root@bt
* Starting SSH Server
* Your IP is: 192.168.1.2
0x48byte ~ # ssh -p 22 root@127.0.0.1
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is b1:be:e4:b3:9b:b8:7b:8c:4d:5e:41:92:c6:c0:7d:15.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
root@127.0.0.1's password:
Linux 2.6.20-BT-PwnSauce-NOSMP.
0x48byte ~ #
Вроде все в порядке но как только подключаюсь к внешнему IP:
ssh: connect to host *.*.*.* port 22: Connection refused
Также есть вопрос насчет добавления юзеров для авторизации и использования chroot авторизации