OpenSSH incompatibility with Sun SSH ??


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers OpenSSH incompatibility with Sun SSH ??
# 1  
Old 04-14-2009
OpenSSH incompatibility with Sun SSH ??

I am using OpenSSH on my sun servers.

There is another suite of sun servers attempting to SSH into my machines.

I am running ssh -vv:

OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006

the other guy is running the sun version of ssh (i don't know what/if any differences there are between the two)

the other guy is running SSHd version 1.8 and he says my sshd version is 1.74.

my question is:

Is there a known incompatibility between our two versions? Is there any reason why he would not be able to connect to my box?

background:
it is not a network issue as we have connectivity, and our respective firewalls are open on the correct ports with correct IP listings. and we have tracked the session between our two boxes.

when he attempts to connect, he does not get prompted for a user name and pass, which is an enabled authentication method on my box.


any and all help is appreciated.

THANKS!
# 2  
Old 04-14-2009
What error do you get?
# 3  
Old 04-14-2009
gimme a few min, i will get that for you, gotta ask the other guy.
# 4  
Old 04-15-2009
Ok, sorry for the delay, took awhile to get to the other guy.

here is the error he gets:

OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.6g 9 Aug 2002
Debug1: Reading configureation data /usr/local/etc/ssh_config
Debug2: ssh_connect: needpriv 0
Debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port xx
Debug1: Connection Established.
Debug2: key_type_from_name: unknown key type '1024'
Debug1: identity file /export/home/sysadmin/.ssh/identity type -1
Debug2: key-type_from_name: unknown key type '----begin'
Debug1: identity file /export/home/sysadmin/.ssh/id_rsa type 1
Debug2: key_type_from_name: unknown key type '----begin'
Debug1: identity file /export/home/sysadmin/.ssh/id_dsa type 2
Ssh_exchange_identification: Conneciton closed by remote host
Debug1: Calling cleanup 0x3c0cc(0x0)


Ok, we already know that the cause of the unknown keytype '----begin' is because the prefixs we have in our keys, if we remove them, we don't get the error. (not sure y they are there in the first place??)

Also we know that the unknown 1024 is because we don't have an identity file for the user. (no problem for us, as the identity is only used for ssh protocol 1, which we cannot use)

We believe that we just need to get our rsa and dsa keys to match (copy mine into his, or vice versa) to get it to work.

anyone else have some imput on this??

thanks again.

Last edited by EWTGPAC; 04-15-2009 at 11:59 AM..
# 5  
Old 04-15-2009
Hi,
I might be totally wrong but as far as I know, you should not need a key at all except you need public key authentication - eg for running automated scripts?
The known_hosts entry should be made automatically once you confirm your connection when you try to connect first and the server is not known by your system?
In our environments we need to connect between different kinds of authentication (nis + and boks) - so we need access routes defined on our authentication servers - but no keys at all. Maybe you have a similar environment?

Rgds
zxmaus
# 6  
Old 04-16-2009
From the debugging output it looks like you made a mistake when copying the public key(s). Usually, public keys that OpenSSH understands start with something like "ssh-rsa AAAA.....", while yours look like they've been encoded (UUencode/Base64/...)

What I find somewhat strange is that it doesn't fall back to password authentication. Are you sure that this is enabled for the server and the user has a valid password?
# 7  
Old 04-16-2009
you guys were right, i was giving them the wrong key info. I was able to successfully SSH into the system the other guy is trying to get to, from another systems i have. and like zxmaus said, it copied the key into the known_hosts file (which i did not know about).

So i copied that key and sent it to the other guy, unfortunately he had already left work for the day, so hopefully today we'll have success.

I still don't know about the password authentication, i thought it was supposed to work just like you think, if RSA fails, password prompt kicks in. and i did double check, it is enabled and i meade sure he had the correct credentials, (although he hasn't got to the password part yet Smilie )

well, hopefully this key works.

will post my success or failure today.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Vulnerability with ssh in OpenSSH in an RHEL installation

There was a security analysis run on one server which has RHEL 5.8 installed and it is showing security vulnerabilities with respect to ssh in OpenSSH with reference no CVE-2007-4752. The vulnerability solution in the security report is showing solution as below: 1) Download and apply the... (3 Replies)
Discussion started by: RHCE
3 Replies

2. Solaris

what is the difference between openssh and ssh package installed with Solaris box

which should i prefer to install in my system openssh or ssh package provided by SUN by default. can i have two packages installed at the same time? (2 Replies)
Discussion started by: chidori
2 Replies

3. Solaris

Sun is not able to ssh another machine of sun

My one Sun machine is not able to ssh another machine of Sun. Although I have configured the ssh successfully ( SunOS sunbox2 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Blade-2500 ) ERROR bash-2.05# ssh sunbox2 /etc/ssh/ssh_config: line 34: Bad configuration option: PermitRootLogin... (0 Replies)
Discussion started by: z_haseeb
0 Replies

4. UNIX for Advanced & Expert Users

SFTP Jail With Sun SSH Not OpenSSH

Hi all, I have a Solaris 10 server with SUN_SSH_1.1 installed. I want to restrict a user via SFTP to only be able to access one directory. I've written a little script in .profile which works perfectly for an ssh login but it appears sftp doesn't read the .profile file so it doesn't work. ... (2 Replies)
Discussion started by: Donkey25
2 Replies

5. Solaris

Please help me.. connection failed between OpenSSH-3.8.1 to Sun SSH-1.1

hi All, We tried to establish a connection from OpenSSH3.8.1 running on Windows Box to SunSSH-1.1 running on Solaris 10. Please see the debug statements. C:\Documents and Settings\sadmin\.ssh>ssh sadmin@10.4.3.8 -v -v -v OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 debug1: Reading... (2 Replies)
Discussion started by: venusunil
2 Replies

6. Solaris

Solaris 9, ssh and openssh

I set the RETRIES and DISABLETIME in /etc/default/login on 2 systems: - 1 Solaris 9 system running Sun SSH - 1 Solaris 9 system running Openssh 5.2 P1 I expected that after n failed logins, the login process will hang for n seconds. It does when the attempted login is done at the console... (8 Replies)
Discussion started by: jabentay
8 Replies

7. UNIX for Dummies Questions & Answers

Fickle ssh connection with OpenSSH on FreeBSD 7.0

I have a FreeBSD server on my home network. It is hooked to the router with an Ethernet cable. Both the server and the router are in the basement. The other computers in the house are upstairs, wireless. So the server's local IP address is set outside the wireless pool, and suppose it's... (1 Reply)
Discussion started by: gabi
1 Replies

8. Programming

Incompatibility an old c and gcc 4.3.1.urgency plz

I couldn't compile this code in gcc (SUSE Linux) 4.3.1 20080507. got me these! sniffer.c: In function ‘int CreateRawSocket(int)': sniffer.c:16: error: ‘htons' was not declared in this scope sniffer.c: In function ‘int BindRawSocketToInterface(char*, int, int)': sniffer.c:31: error: ‘bzero'... (2 Replies)
Discussion started by: galaxy.ice
2 Replies

9. Solaris

password less login from openssh to SSH Secure Shell 3.0.1 Sun solaris 7

Hi, I would like to login from a Sun server running ssh: Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f to ssh: SSH Secure Shell 3.0.1 on sparc-sun-solaris2.6 How can I achieve this? Thanks a million in advance (1 Reply)
Discussion started by: newbewie
1 Replies

10. Cybersecurity

commercial SSH vs. OpenSSH

I'm not sure if this is appropriate for the forum, but I figured it was security related, so here goes... I'm writing an anlaysis for my group about moving some of the old internet protocols (rsh, rlogin, etc...) to the SSH suite of tools. An outside security group recommended a commercial... (7 Replies)
Discussion started by: jalburger
7 Replies
Login or Register to Ask a Question