Murphy Mac - Screencasts and Tutorials » Page 'SSH Without A Password'

SSH Without A Password


ssh without a passwordWhen you start using SSH you’ll quickly find it asks for your password. Frequently. Murphy copies files to the web server over an SSH transport and each new copy operation prompts for a password. But it doesn’t have to be that way. Set up an SSH key pair and the keys will handle authentication.

The steps to implement your key pair are pretty straight forward. On the client computer you execute one command that generates the key pair. Then you add the contents of the public key to a file called authorized_keys2 on the server. If the file doesn’t exist on the server you can simply rename your public key file to authorized_keys2 and you’re done.

That’s it. Once the authorized_keys2 file contains your public key you can login with SSH from any machine with the private key. The logic is that only someone with proper credentials could have placed the public key in the appropriate folder on the server. And once that public key is in place only the corresponding private key will be authenticated without a password.

Here’s the really interesting thing about all these keys: You can give that same public key to as many people as you want. And even though they can all use it, and only it, to verify that you have the corresponding private key, they cannot ascertain what that private key is. The underlying technology is called asymmetric cryptography in case you want to know more.

Once you’ve set up the keys like we’ll show you in the screencast you can use other tools without passwords too, like scp and rsync for copying files. We’ll get to scp in a later screencast. Murphy introduced rsync as a way to copy an iWeb site to a third-party server.

This screencast picks up where we left off yesterday, with SSH already up and running.

Watch Now | Permalink

6 comments to “SSH Without A Password”

  1. HI, Thanks for excellent tutorials.

    Does it matter where you create ssh keys-on server or client?
    If I am using two clients to access one server, how to append authorized_keys2 at the end so that it will allow both the clients.

    Is it ok if I generate ssh keys on server, and transfer private keys to both clients, so that i don’t need to append authorized_keys file every time I am adding the client.

    If I am using rsa instead of dsa, do i still name the authorized_key file as authorized_keys2? Is it just a difference in name of the file or some thing more?
    Thanks for any help, I know you put this tutorial long time ago.

  2. This piece of writing will help the internet people for creating new web site or even a weblog from start to

  3. I was recommended this website by way of my cousin. I’m not sure whether or
    not this put up is written via him as nobody else recognise such exact about my problem.
    You’re wonderful! Thanks!

  4. You’re so awesome! I don’t believe I have read through something like this before.
    So good to discover someone with unique thoughts on this topic.
    Seriously.. many thanks for starting this up. This web site is one thing that is required on the web, someone with a
    bit of originality!

  5. There is no direct otpion to reset password. copssh is using windows users for authentication. You can solve it by deactivating and activating the user again. Select deactivate user from programs menuNow select Activate user Copssh activation wizard will ask you to enter the new password. User will be activated with new password.In effect Password is changed for that user. 0Was this answer helpful?

  6. First off remember, there slohud be absolutely no attempt to paint the British in any positive light, at all. This is propaganda not a discussion. The above is the important point to remember as what follows will not be all that historically accurate, but would be effective in rallying supporters.. . Now, be sure to mention British soldiers opening fire on innocent colonists in Boston during the Boston Massacre. Talk about the brave colonists standing their ground and driving the British back from Lexington and Concorde. Mention that the British were trying to take away the rights of citizens to defend themselves by confiscating their weaponry. Be sure to play up the British shooting first.. . Talk about patriotism toward the colonies, more particularly what colony they were in. Talk about how citizens were forced to pay taxes to a government that refused to let them have a say in it. Talk about the abuses of the king and how he was trying to sieze power. Talk about how so much land was being kept from good colonists so Indians could live there (I will add a disclaimer here, I am not supporting anything done to the Native Americans what happened was shameful and evil, but this makes for good propaganda regardless). Play up how Quebec gets treated better than good citizens.. . Basically, what you have to do is make the colonists appear in the light as defending themselves against a tyrannical aggressor, regardless of how true a statement anyone might find it. That is the way to win support to the cause.

Leave a comment