LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Fun with ssh (https://www.linuxquestions.org/questions/linux-security-4/fun-with-ssh-367697/)

UmneyDurak 09-28-2005 01:03 AM

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.

david_ross 09-28-2005 12:57 PM

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.

UmneyDurak 09-28-2005 05:55 PM

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.

TruckStuff 09-29-2005 08:28 AM

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.

UmneyDurak 09-29-2005 11:38 AM

openSSH server? The server I'm trying to connect to is SSH2 server. I'm trying to connect from openSSH client.

david_ross 09-29-2005 02:37 PM

I'm not sure about ssh2 - is that from ssh.com? They must have a way to install the key on the server somehow.

UmneyDurak 09-29-2005 05:07 PM

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.

david_ross 09-30-2005 12:59 PM

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.

UmneyDurak 10-01-2005 08:13 PM

Never mind got it working.

Thx.


All times are GMT -5. The time now is 01:46 PM.