Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 30th, 2003, 11:34 AM
faddeous dookie faddeous dookie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 12 faddeous dookie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SSH remote client question

My default Suse 8.2 is using OpenSSH. I am generating ssh2 key pairs. Does it matter what the remote server I am trying to connect to is running or can I place my public keys into any server side version? Reason I ask, is the remote server I am trying to connect to is running SSH 3.2.x (is what I get after running ssh -V) and nothing I do seems to get me past typing in passwords

I can log in just fine using username and password, but would like to get this key pair setup so password is not needed

TIA

Reply With Quote
  #2  
Old June 30th, 2003, 02:17 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
There has been a flaw in the openssl library for quite some time (at least enough time so some big vendors used it for their ssh servers). It didnīt permit ssh2 keys that use rsa2 encryption. This was my recent problem with rh7.3 and the last security updates. I changed to "blowfish" encryption instead and it worked like a charm. [source: putty documentation]

You can only use ssh2 keys with a server that supports ssh2 protocol. But even if supported, it can be disabled too. (Usually you disable ssh1, not v2, so this should not apply)

Did you check if the server allows pk auth at all? This has to be enabled in /etc/ssh/sshd_config (or where ever your os distributor put your config files)

Also, the key has to be in the format that this server expects. If the server is running the (commercial) SSH, you need to find a program that converts between OpenSSH and SSH key format. (it should come with either of them. if not, search and download "puttygen")

[edit]
Another idea: sometimes the file has to be called "~/.ssh/authorized_keys2" for ssh2 keys...
[/edit]
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Last edited by M.Hirsch : June 30th, 2003 at 02:20 PM.

Reply With Quote
  #3  
Old June 30th, 2003, 02:45 PM
faddeous dookie faddeous dookie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 12 faddeous dookie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm good idea I need to look at the remote server for that. I know my client and the remote server supports .ssh2, its probably something in the config files. We use -t dsa as well so rsa is not an issue. See what happens on my Suse box I run ssh-keygen -b 1024 -t dsa, and it generates the pk and places into ~/.ssh, while normally .ssh has meant ssh or ssh1 in the past I know for sure its a ssh2 pk because of the content of the key files. So on the remote server I have tried both ~/.ssh2/authorization and ~/.ssh/authorized_key and _key2a with no luck. Really odd.

Reply With Quote
  #4  
Old June 30th, 2003, 02:57 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
I think itīs authorized_keys (plural because you can concatenate several keys in it)

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > SSH remote client question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT