Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-28-2005, 01:03 AM
|
#1
|
Member
Registered: Jun 2004
Posts: 178
Rep:
|
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.
|
|
|
09-28-2005, 12:57 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
09-28-2005, 05:55 PM
|
#3
|
Member
Registered: Jun 2004
Posts: 178
Original Poster
Rep:
|
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.
|
|
|
09-29-2005, 08:28 AM
|
#4
|
Member
Registered: Apr 2002
Posts: 498
Rep:
|
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.
|
|
|
09-29-2005, 11:38 AM
|
#5
|
Member
Registered: Jun 2004
Posts: 178
Original Poster
Rep:
|
openSSH server? The server I'm trying to connect to is SSH2 server. I'm trying to connect from openSSH client.
|
|
|
09-29-2005, 02:37 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I'm not sure about ssh2 - is that from ssh.com? They must have a way to install the key on the server somehow.
|
|
|
09-29-2005, 05:07 PM
|
#7
|
Member
Registered: Jun 2004
Posts: 178
Original Poster
Rep:
|
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.
|
|
|
09-30-2005, 12:59 PM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
10-01-2005, 08:13 PM
|
#9
|
Member
Registered: Jun 2004
Posts: 178
Original Poster
Rep:
|
Never mind got it working.
Thx.
Last edited by UmneyDurak; 10-01-2005 at 10:41 PM.
|
|
|
All times are GMT -5. The time now is 01:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|