Slow ssh login

Having problems with ssh login? Dont care for waiting 10 extra seconds for ssh login?

We have the recipe for it!
Append this to your /etc/ssh/sshd_config:

UseDNS no

Then restart ssh:

/etc/init.d/ssh restart

This will disable reverse resolving of your ip when you connect (which makes the delay)

HURAYH!

Tags: , ,

Easy peasy ssh key authentication

You are on your job workstation, and you are SICK and TIRED of typing your password everytime you ssh to one of your corporate l33t h4xx0r boxes. Lets see how we easy as hell can use ssh keys to authenticate:

As your normal user on your workstation:
ssh-keygen -t rsa
This command makes your unique id for other servers to recognize when you ssh to them.
If you want passphrase you make one, everything else goes by default.

Lets make your servers recognize you and your key:
ssh-copy-id -i ~/.ssh/id_rsa.pub user@superhaxxorserver.com

Now you can do this without having to type a password:
dingle@berry-desktop:~$ ssh horsepr0n.mine.nu apt-get moo
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...

Tags: , , ,