[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: remote login advice



Quoth Moritz Schulte, 
> SSH (Secure SHell) is a very nice telnet replacement, which uses
> encryption and keys. Try apt-get install ssh...

I'll second this and add something to it.

If you have ssh running on both the laptop and desktop, you can set up
ssh to use public key verification, so you don't need a password.

on the laptop, run `ssh-keygen', leaving the password blank[1]. That
should create a file called `~/.ssh/identity.pub'. Copy that file to the
desktop (eg., scp ~/.ssh/identity.pub desktop:/tmp), and add the
contents of the file to ~/.ssh/authorized_keys (note the bonehead
American spelling of `authorized'), possibly by doing `cat
/tmp/identity.pub >> ~/.ssh/authorized_keys'.

Note that to do this, sshd must be suid root (I think), but you can't
log in as root (as you shouldn't, log in as a non-priveleged user and
use su or sudo).

Hope that makes some sense,

cheers,

damon


[1] There are security implications to this, but I find the convinience
outweighs any (small) danger.

-- 
Damon Muller              | Did a large procession wave their torches
Criminologist/Linux Geek  | As my head fell in the basket,
http://killfilter.com     | And was everybody dancing on the casket...
PGP (GnuPG): A136E829     |                      - TBMG, "Dead"

Attachment: pgpDp23hSIVxw.pgp
Description: PGP signature


Reply to: