La Salle Debain

Open Source @ Consolidated Braincells Inc.

Search for:

Show past days of news

About La Salle Debain

This is a weblog I'm keeping about my work on Debian and any other useful Debian related info I come across. It is not meant to compete with other news sources like Debian Weekly News or Debian Planet. Mostly it is just a way for me to classify and remember all the random bits of information that I have floating around me. I thought maybe by using a blog it could be of some use to others too. Btw. "I" refers to Jaldhar H. Vyas, Debian developer for over 8 years. If you want to know more about me, my home page is here.

The name? Debain is a very common misspelling of Debian and la salle de bains means bathroom in French.

If you have a comment to make on something you read here, feel free to write to me at jaldhar@debian.org.

You can get an rss 0.91 feed of the blog here.

Saturday, January 18 2003

Passwordless SSH

In debian-user , Jean-Marc Liotier offers the following recipe for logging in to a remote host via SSH without having to give a password.

  
. 	# Local end :
	cd ~/.ssh
	# Enter an empty password when prompted by the following command
	ssh-keygen -t dsa -f id_dsa
	scp id_dsa.pub user@remote.end.net:~/.ssh
	# Repeat last command for all remote ends
	
	# Remote end
	test -d .ssh || mkdir .ssh
	chmod 700 ~/.ssh
	cd ~/.ssh
	touch authorized_keys2
	cat id_dsa.pub >> authorized_keys2
	chmod 640 authorized_keys2
	rm -f id_dsa.pub
	
	# Local end :
	ssh -l user remote.end.net
	# Look ma, no password !


posted at: 23:00:00 | #