Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 9 of 9

This is a discussion on SSH PubKey in the VPS & Dedicated forum
Does anyone use PubKeyAuthentication with SSH?? I am thinking about giving it a shot, but if I understand correctly, if I am at work or ...

  1. #1
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204

    SSH PubKey

    Does anyone use PubKeyAuthentication with SSH?? I am thinking about giving it a shot, but if I understand correctly, if I am at work or something and do not have the key file, I cannot access SSH
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  2. #2
    all about nothing! Frank Broughton's Avatar
    Join Date
    Jan 2006
    Posts
    2,158
    See Thisisit's signature - I believe he uses it and has some write up on it.

  3. #3
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    I just checked and I didnt see anything about it... i am just concerned about if I NEED to access SSH and I don't have the private key file with me
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  4. #4
    JPC Addict
    Join Date
    Nov 2005
    Posts
    132
    You can use both if you don't disable password authentication.

  5. #5
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    Quote Originally Posted by wuurp View Post
    You can use both if you don't disable password authentication.
    That really defeats the purpose of PubKey... If you use PubKey and disable password, essentially, your server is virtually unhackable on SSH, unless that key escapes your possession of course.
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  6. #6
    JPC Addict
    Join Date
    Nov 2005
    Posts
    132
    PubKeys have other purposes, but if you want password authentication disabled, I think your only option if you find yourself without your key, is to access the server through a control panel, or even vzpp if on vps, edit the sshd_config to reenable password authentication, and restart sshd.

    So, are you using a passphrase with your pubkey?

  7. #7
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    Currently I am simply using a passkey to access SSH without any sort of pub/priv key sig... I am running SSH on an altered port instead of 22, but I am paranoid and wanted to see if anyone uses pub/priv key instead and what they recommend... What I am concerned about really is if I was not using my desktop or laptop and needed to SSH into the server, I would need the private key file to authenticate... I do not want to store the key file on my Flash Drive because if I were to 'lose' my flash drive, then my SSH key is floating around!
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  8. #8
    JPC Addict
    Join Date
    Nov 2005
    Posts
    132
    Losing your flash drive is why you would use a passphrase with your PubKey. It's like another password that is just used for authentication when using the PubKey. So, if someone finds your flash, they still would have to crack the passphrase to get in your account.

    Oh, you've probably already done this, but as long as we are talking security, you should disable root logins, and only allow protocol 2.

  9. #9
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    if ~/.ssh doesn't exist create it with "mkdir ~/.ssh"

    then

    cd ~/.ssh

    ssh-keygen -t rsa
    (when asked to enter a password, hit enter if you don't want any, this means you'll get automatic logins, this is what i'm using, but you should keep your ssh private key to yourself)

    copy the generated "id_rsa.pub" into the remote server's ~/.ssh/ and rename it as "authorized_keys", if the file already exists then overwrite it or append to it.

    on the remote server, edit the file /etc/ssh/sshd_config and make sure you have these options set:
    ChallengeResponseAuthentication no
    PasswordAuthentication no
    PubkeyAuthentication yes
    UsePAM yes

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •