Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-14-2009, 10:14 PM   #1
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
ssh with RSA cert

I tried to connect to a linux server with rsa cert via ssh. What I did:

Create private key (test_priv.ppk) and public key (test_pub) with puttygen (in windows server)

Copy the public key to the linux server as user1, convert it
ssh-keygen -if test_pub >> test_pub_new
cat test_pub_new >> .ssh/authorized_keys
as root
chmod 600 /home/user1/.ssh/
chmod 700 /home/user1/.ssh/authorized_keys
I uncomment below in /etc/sshd/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
On win server, I add test_priv.ppk as authentication file for putty (SSH > Auth)

Restarted sshd on linux server, but I still got "Server refused our key" when I log in as user1

Last edited by umarzuki; 09-14-2009 at 10:18 PM. Reason: addendum
Old 09-14-2009, 10:39 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Try increasing your verbosity in putty (not quite sure where that setting is in putty, but try openssh would use ssh -vv or similar) and see if more details are provided. Also, the directory should be 700 perms and the file 600 -- so double check your permissions there. Also, your server logs in /var/log/messages might provide some insight into what's going on.
Old 09-15-2009, 12:25 AM   #3
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks for the suggestion.

I finally can ssh from windows with sshwindows
Installed it and I did like normally would in linux.

Works great!

Now I need to find a way to try use pin authentication (usb dongle) with ssh for my ePass2000


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 rsa key PB0711 Linux - Security 3 09-10-2006 03:57 PM
SSH RSA Auth lil_drummaboy Linux - Networking 2 11-27-2005 06:42 PM
RSA Keys for SSH XaViaR Linux - General 4 07-02-2005 09:15 AM
ssh RSA key thanat0s Linux - Security 3 09-29-2003 09:51 PM
SSH, DSA and RSA Rex_chaos Linux - Networking 0 03-22-2002 05:54 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:11 AM.

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