Linux - SecurityThis 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.
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.
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.