ssh1 ssh2 how to tell which version i have?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ssh1 ssh2 how to tell which version i have?
# 1  
Old 10-24-2008
ssh1 ssh2 how to tell which version i have?

upon entering the command:ssh -v

I get this:OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006

how do i identify whether or not i have ssh1 or ssh2?

thanks in advance
# 2  
Old 10-24-2008
Your '/etc/ssh/sshd_config' file should have a line 'Protocol'. If it is '2', you have ssh 2. If you're unsure, paste your config file.
# 3  
Old 10-24-2008
i apologize in advance

I do not have the path you entered

/etc/ssh

I am going to assume this is becuase of my version of OS?

If this helps i am using Solaris
# 4  
Old 10-24-2008
OpenSSH supports both protocols. You can use the options -1 or -2 to specify the protocol. Unless specified otherwise in sshd_config (as explained by glen.barber) the default is to use 2, and if that fails, to try 1.
# 5  
Old 10-24-2008
Quote:
Originally Posted by spirtle
OpenSSH supports both protocols. You can use the options -1 or -2 to specify the protocol. Unless specified otherwise in sshd_config (as explained by glen.barber) the default is to use 2, and if that fails, to try 1.
Does this mean that if someone else is trying to ssh into my box, that no matter what version they have (1 or 2) they will be successful?

or does my protocol setting have to match theirs?

sorry if i am confusing anyone. I am just troubleshooting a connection issue i am having between my system and another system. trying to rule out ssh version compatibility
# 6  
Old 10-24-2008
If the server specifies one (and only one) protocol, the client must match in order to connect.

If the server will accept protocols 1 and 2, it does not matter what version the client uses.
# 7  
Old 10-24-2008
Quote:
Originally Posted by glen.barber
If the server specifies one (and only one) protocol, the client must match in order to connect.

If the server will accept protocols 1 and 2, it does not matter what version the client uses.
sorry, gonna have to do this barney style for me. please excuse my lack of knowledge.

so my box, the server, the one being connected to, Has OpenSSH, which supports both. does 'support both' mean 'accept both'?

and am i correct in understanding that the ssh config is where the protocols that are accepted are configured?

if so, what is the correct entry to enable my machine to accept both?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Cybersecurity

Request for SSH2 public key

Hey all, I have a request from a third party that will be setting my firm up for an account so we can sftp files to their server in a Production environment. I know where the public keys are located on our Red Hat Linux envronment. I was going to ftp the keys from the Linux environment over to my... (2 Replies)
Discussion started by: dfb500
2 Replies

2. Solaris

SFTP from SSH2 to SSH

Hi, Earlier, I have configured SFTP successfully in my prev jobs. This time I have to configure SFTP for local server (uses SSH2) and remote server (uses SSH). I tried to search the forum. I did not find the right thread. I appreciate your help. The following is the additional info >... (5 Replies)
Discussion started by: bobbygsk
5 Replies

3. Shell Programming and Scripting

Using SSH2 in windows

I have Windows server setups consisting two servers to work on. I have to run a batch file on server 2 (say, Batch2) by running a batch file on server 1 (Say, Batch1). We have Tectia SSH server-client setup. Could anyone please tell the script/code for Batch1? (1 Reply)
Discussion started by: sakha83
1 Replies

4. UNIX for Dummies Questions & Answers

can we run ssh2 in background

Hi, I was trying to run ssh2 command in background... but i got follwoing error message saying that process has been stopped.. + Stopped(SIGTTOU) Anyone have any idea about this??? Appreciated your help.. (3 Replies)
Discussion started by: pvamsikr
3 Replies

5. Cybersecurity

openssh to ssh2 interoperability

I have openssh identity and identity.pub which work well on many machines to uniquely identify myself. I want to put these on a host (Tru64) using ssh2. I can convert the public key to ssh2 format using "ssh-keygen -e" on an openssh box. How should I convert the private key? (2 Replies)
Discussion started by: porter
2 Replies

6. UNIX for Advanced & Expert Users

SSH2 Authentication with OpenSsh

Hi Can anyone help resolving the issue here? I am trying to connect from one unix server(ssh2) to another unix server using (Openssh). I converted the public key from ssh2 to openssh format and uploaded it. Yet it is asking for a password to connect. Here is the debug info: ... (0 Replies)
Discussion started by: jazjit
0 Replies

7. UNIX for Dummies Questions & Answers

ssh2 & sftp help

Hi, I need to implement sftp between server 1 and server2. I have already generated the public key using account user1 on server 1 and and sent it to the administrator of server2. I have also finished updating the identification file at /home/user1/.ssh2 I have an account created... (11 Replies)
Discussion started by: tansha
11 Replies

8. AIX

SSH2 help !!!!

Hi, I need to implement sftp between server 1 and server2. I have already generated the public key using account user1 on server 1 and and sent it to the administrator of server2. I have also finished updating the identification file at /home/user1/.ssh2 I have an account created... (2 Replies)
Discussion started by: tansha
2 Replies

9. Shell Programming and Scripting

Can't Delete File using ssh2

hi, i am getting error while executing the follwoing command. /usr/local/bin/ssh2 user@hostname find /test/DeleteFile -mtime +10 -exec rm {} \; error is : find: 0652-018 An expression term lacks a required parameter. it is deleting the files from the specified location. it is working... (2 Replies)
Discussion started by: Sunil Rajput
2 Replies

10. UNIX for Dummies Questions & Answers

ssh2 troubles

I'm trying to set up a secure and trusted connection between 2 boxes running solaris using ssh2. I've run ssh-keygen2 on the local box and on the remote box, created the identification file ( IdKey id_dsa_2048_a ) on the local machine and copied across the public key file from the local to... (5 Replies)
Discussion started by: PaulC
5 Replies
Login or Register to Ask a Question