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

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.

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

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

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?

No, supporting and accepting are not used interchangeably here.

Post the results of this command:
uname -a
so we know what Solaris version you have.

Yes sshd_config defines the acceptable ssh versions. And best practice is to use Protocol 2 only. Your sshd_config may be in /usr/local/etc.

input: uname -a
output: SunOS iosapps 5.8 Generic_117350-39 sun4u sparc SUNW,Netra-240

My ssh config was not in /usr/local/etc either. but i did find it.

I see now where the protocols are defined.

I show 2, 1

which i take to mean that i support and allow both.

with this find my question has been answered.

thanks everyone for your help.