LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-28-2005, 01:03 AM   #1
UmneyDurak
Member
 
Registered: Jun 2004
Posts: 178

Rep: Reputation: 30
Fun with ssh


Hi.
I'm trying to connect to a server that uses ssh2 to authenticate an ssh connection. I have a ssh2 keys on my account at school and I can connect to it just fine. Problem is I also want to connect to it from my home computer running FC4, which comes with OpenSSH. Can this be done? I heard you can't convert ssh2 key to openSSH key if ssh2 key has a password.
Can I generate an openSSH key then convert it to SSH2 key and ask admin to add it to the server?

Thank You.
 
Old 09-28-2005, 12:57 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you explain what keys you are trying to convert?

You should be able to login just fine. The version of OpenSSH that comes with FC4 should have no problems with version 2.
 
Old 09-28-2005, 05:55 PM   #3
UmneyDurak
Member
 
Registered: Jun 2004
Posts: 178

Original Poster
Rep: Reputation: 30
I'm trying to convert ssh2 keys to open ssh. I tried it, but it doesn't work. It keeps asking me for the password. Maybe I just did it wrong. What is a proper way of doing this?
The server runs ssh2, and an account I have on my school computer has ssh2. I can access the server from my school account using ssh2 keys that were generated. I also would like to connect to the server using my home computer which has openSSH.
 
Old 09-29-2005, 08:28 AM   #4
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
You need to tail /var/log/secure for insight into the problem. You should be able to simply scp your public key to the other server then cat kay >> ~/.ssh/authorized_keys and be ready to go. No conversion needed, unless the OpenSSH server has some bizarre configuration.
 
Old 09-29-2005, 11:38 AM   #5
UmneyDurak
Member
 
Registered: Jun 2004
Posts: 178

Original Poster
Rep: Reputation: 30
openSSH server? The server I'm trying to connect to is SSH2 server. I'm trying to connect from openSSH client.
 
Old 09-29-2005, 02:37 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I'm not sure about ssh2 - is that from ssh.com? They must have a way to install the key on the server somehow.
 
Old 09-29-2005, 05:07 PM   #7
UmneyDurak
Member
 
Registered: Jun 2004
Posts: 178

Original Poster
Rep: Reputation: 30
Don't know it comes with Solaris. Maybe I'm missing something. They keys are in .ssh2 folder on my account at school. My computer at home has .ssh folder which I assume corresponds to openSSH.
Let me restate the problem one more time.
There is a school server. I can connect to it from my shcool account. The public and private keys that allow me to do it are in .ssh2 folder. They use DSA encryption. I had to generate those keys on my school and give them to server admin in order to be able to ssh in to that server and use repository on it.
I also want to be able to use the repository and ssh in to that server from my laptop that runs FC4. Is it possible to use the keys I already generated on my school account to connect to that server from my home. I think FC4 uses openSSH, it doesn't have .ssh2 folder but does have .ssh folder.
I read some articles and came to understand that keys generated by openSSH are different from keys generated by ssh2.

Last edited by UmneyDurak; 09-29-2005 at 05:19 PM.
 
Old 09-30-2005, 12:59 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you save your private key as ~/.ssh/id_dsa.pub it should work. I'd imagine the format is the same. If not then just generate another key and give it to the server admin. It's odd that you can't just put the key on yourself but that may be a policy decision.
 
Old 10-01-2005, 08:13 PM   #9
UmneyDurak
Member
 
Registered: Jun 2004
Posts: 178

Original Poster
Rep: Reputation: 30
Never mind got it working.

Thx.

Last edited by UmneyDurak; 10-01-2005 at 10:41 PM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
Just for fun hyper guy Linux - Newbie 4 03-04-2004 06:07 PM
Just for fun neo77777 General 0 09-24-2002 06:42 PM
Just for FUN! How would you... macdudelx Linux - General 18 08-11-2002 01:34 AM
Fun with my new billsabub Linux - Software 4 02-09-2001 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration