On Thu, Jan 31, 2008 at 08:23:39PM -0500, John Mort wrote:
> Ah, okay.  So there's no way to get around having to manually point
> out the location of the private key when I'm making the ssh
> connection?
> 
> Basically, rather than typing: ssh -i ~/.keys/theprivatekey [EMAIL PROTECTED]
> I want to be able to just type: ssh [EMAIL PROTECTED]
> and have it figure out which key to use.  This is mainly because I go
> into his machine regularly and would like to reduce the amount of
> typing required to make the connection.

~/.ssh/config

Host atldb-sv
        User mkershaw
        Compression yes
        TCPKeepAlive yes
        IdentityFile ~/.ssh/id_atldb
        LocalForward 8000 localhost:80

Note that it matches on string, not on dns, so what you type for host is
what it matches.  If you use IP, put the IP for the Host fooo.

-m

-- 
Mike Kershaw/Dragorn <[EMAIL PROTECTED]>
GPG Fingerprint: 3546 89DF 3C9D ED80 3381  A661 D7B2 8822 738B BDB1

Supercollider Programming: The art of debugging your program by 
letting it crash and looking at what remains.

Attachment: pgp2jRe0tuCjm.pgp
Description: PGP signature

_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org          
   
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug                           
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium          
        
  Feb 6 - DBUS
  Mar 5 - Setting up a platform-independent home/small office network using 
Linux

Reply via email to