Posts

Showing posts with the label ubuntu

adding new source to repository

Just a quick command to add a new source to the repository: sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

2 steps to ssh without passwords

Situation: You are on machine A, and you want to log in machine B without having to enter your password each time. On machine A: type: ssh-keygen -t rsa then press enter for default settings, and make sure you don't enter any paraphrase. Now, you need to send your public key to machine B. type: cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys' That's it !

ssh server

Sometimes, I do a clean install of ubuntu and I forget to reinstall ssh server... I get this error when trying to ssh to the box that doesn't have ssh : ssh: connect to host 192.168.1.107 port 22: Connection refused Need to install ssh server and client: sudo apt-get install openssh-server openssh-client