LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-14-2009, 10:14 PM   #1
umarzuki
Member
 
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
Code:
ssh-keygen -if test_pub >> test_pub_new
cat test_pub_new >> .ssh/authorized_keys
as root
Code:
chmod 600 /home/user1/.ssh/
chmod 700 /home/user1/.ssh/authorized_keys
I uncomment below in /etc/sshd/sshd_config
Quote:
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
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

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

I finally can ssh from windows with sshwindows http://sshwindows.sourceforge.net/download/
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
 
  


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 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

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

All times are GMT -5. The time now is 09:33 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