LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what ssh I am using? (https://www.linuxquestions.org/questions/linux-general-1/what-ssh-i-am-using-106868/)

mikeshn 10-21-2003 04:59 PM

what ssh I am using?
 
If I connect to a remote server through ssh. How can I find what ssh I'm using ? ssh1 or ssh2 ?

g00$e 10-21-2003 05:09 PM

I believe 'ssh -V' will give you the information you want. Check 'man ssh' for more.

trickykid 10-21-2003 05:46 PM

Quote:

Originally posted by g00$e
I believe 'ssh -V' will give you the information you want. Check 'man ssh' for more.
That is correct.

mikeshn,

I don't understand what you mean by ssh1 or ssh2.. it will usually look something like this:
Code:

drew@trickykid:~$ ssh -V
OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003

ssh or better yet, Openssh isn't referred to as ssh1 or ssh2.. and so on.

Cheers.

nrunge 10-21-2003 06:07 PM

2 different versions
 
There are actually 2 different versions of the SSH protocol. If you read the manpage for ssh it will describe how each works. I beleive by default it uses ssh2 but if you want to force it there is a command switch.


ssh -1 Force protocol version 1
ssh -2 Force protocol version 2

g00$e 10-21-2003 06:08 PM

The man page does say this:

Code:

    -1      Forces ssh to try protocol version 1 only.

    -2      Forces ssh to try protocol version 2 only.

Unfortunately that is about all I can add to this subject.

The above post went in before I could hit submit I swear!

trickykid 10-21-2003 07:21 PM

Re: 2 different versions
 
Quote:

Originally posted by nrunge
There are actually 2 different versions of the SSH protocol. If you read the manpage for ssh it will describe how each works. I beleive by default it uses ssh2 but if you want to force it there is a command switch.


ssh -1 Force protocol version 1
ssh -2 Force protocol version 2

Ayee.. he should have mentioned protocol then and not make it sound like he was wanting the version that was being used... ;)

I've never seen it mentioned or stated like "ssh1" or "ssh2"... :rolleyes:


All times are GMT -5. The time now is 08:42 PM.