Skip to content

mattwynne/ssh-forever

Repository files navigation

ssh-forever

Simple command to give you password-less SSH login on remote servers:

ssh-forever [email protected] [options]

see `ssh-forever --help` for details on the options availlable.

Installation

gem install ssh-forever

Example:

[matt@bowie ssh-forever (master)]$ ssh-forever [email protected] -n dreamhost
You do not appear to have a public key. I expected to find one at /Users/matt/.ssh/id_rsa.pub
Would you like me to generate one? [Y/n]y
Copying your public key to the remote server. Prepare to enter your password for the last time.
[email protected]'s password:
Success. From now on you can just use plain old 'ssh'. Logging you in...
Linux broncos 2.6.29-xeon-aufs2.29-ipv6-qos-grsec #1 SMP Thu Jul 9 16:42:58 PDT 2009 x86_64
  _
 | |__ _ _ ___ _ _  __ ___ ___
 | '_ \ '_/ _ \ ' \/ _/ _ (_-<
 |_.__/_| \___/_||_\__\___/__/

 Welcome to broncos.dreamhost.com

Any malicious and/or unauthorized activity is strictly forbidden.
All activity may be logged by DreamHost Web Hosting.

Last login: Sat Aug 15 17:24:17 2009
[broncos]$ exit
[matt@bowie ssh-forever (master)]$ ssh dreamhost

Why?

Because I can never remember how to do it by hand. Now I don't have to, and nor do you.

## What about ssh-copy-id?

I'll admit that I wasn't aware of the ssh-copy-id unix command when I wrote this tool. The main advantage that ssh-forever has over ssh-copy-id is that it will automatically generate a public key for you if you don't already have one, making it a bit more user-friendly if you're not familiar with the SSH key system.

You should probably try ssh-copy-id first. Many linux distros come with it built in. OSX users can install it with brew install ssh-copy-id

Copyright

Copyright (c) 2009 Matt Wynne. See LICENSE for details.

Disclaimer

This is open source. If you're worried, read the code before you run it. Don't come crying to me if it breaks something for you.

About

Smooth password-less SSH setup

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages