1820270 Members
3374 Online
109622 Solutions
New Discussion юеВ

Re: ssh versions differ

 
SOLVED
Go to solution
MikeL_4
Super Advisor

ssh versions differ

Is there a way to use ssh and/or scp between two different versions ?

Receiving:
# ssh testsrv1
Protocol major versions differ: 2 vs.1
#
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor
Solution

Re: ssh versions differ

Hi Mike,

Try forcing ssh to use a specific version

ssh -1

You can hardcode the versions in bin/ssh_config file under wherever you got ssh installed.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
MikeL_4
Super Advisor

Re: ssh versions differ

Thanks, is there a difference in generating a key in version 1 vs version 2 ??

Use to doing: ssh-keygen -t dsa
than copying the id_dsa.pub contents to authorized_keys file.

Sridhar Bhaskarla
Honored Contributor

Re: ssh versions differ

Hi Mike,

Yes. For version 1, you will need to use rsa1 instead of dsa. It will create the files called identity and identify.pub similarly to id_dsa and id_dsa.pub.

ssh-keygen -t rsa1

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bill Hassell
Honored Contributor

Re: ssh versions differ

And most important: SSH-1 is not recommended due to the weak algorithms and security in this protocol. Always upgrade to SSH-2 and use this protocol for secure transmissions.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: ssh versions differ

Default will go to the lowest compatible version.

That means in this case using the less secure v1 encrypton/key system.

Better since openssh is open source you upgrade and bring your version numbers into closer synch.

Then generate and exchange new public keys.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sanjay_6
Honored Contributor

Re: ssh versions differ

Hi,

To ssh from a server running ssh1 to a server running ssh2, you need to have sshd_config on the server running ssh2 to allow protocol 1 as well as 2. You do this by uncommenting "protocol 1 2" in the sshd_config (probably in /etc/ssh) and then stopping and restarting the sshd daemon.

Hope this helps.

Regds
MikeL_4
Super Advisor

Re: ssh versions differ

Thanks