Friday, February 9, 2018

configure ssh server to support only version 1

1- generate key
$ cd /etc/ssh
$ sudo ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
$ sudo chmod 600 /etc/ssh/ssh_host_key

2- update configuration of ssh,  /etc/ssh/sshd_config as below
Protocol 1
HostKey /etc/ssh/ssh_host_key


3- restart ssh service
$ sudo /etc/init.d/ssh restart



4- from client we use
$ ssh -1 ssh-server-ip-address
if it display the message below
ssh1 is not supported

we can use putty, and on ssh setting
Preferred SSH protocol Version chosse: 1

No comments:

Post a Comment