Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Connect To Ssh With Private Key


1 reply to this topic

#1 martvefun

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 59 posts

Posted 09 March 2010 - 10:36 PM

Hello,

To connect to a certain server, I've received keyfiles :
key.ppk
key.priv
key.pub

The person who gave me that use putty on windows.
There is putty on linux (the system I'm using) but I don't see why I should do that with this ugly interface why I can do it simply in the terminal

I read that I had to put the content of the key (the ppk or priv ?) in ~/.ssh/authorized_keys
I tried to connect with "ssh -i /path/to/key.ppk root@myserver" but it still ask me the password (which I don't know)

as it didn't works with the classical ssh, I gave a try to putty but here I've a message "Server refused our key" and ask the pass
same with the command line "putty -i /path/to/key.ppk root@myserver"

any idea ?

I'm starting wondering if the guy did something wrong on the server side...

thank you

#2 martvefun

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 59 posts

Posted 12 March 2010 - 01:07 PM

ok there was a problem on the server side

the ~/ssh/authorized_key is for the server only

to connect, I've to use
ssh -i mykey.priv login@myserver





Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users