Contact

Département d'informatique
Université du Québec à Montréal
CP 8888, Succ. Centre-ville
Montréal (Québec) H3C 3P8
Phone: 514-987-3000, #5516
Office: PK-4525
Email: blondin_masse[dot]alexandre
[at]uqam[dot]ca

About

I have completed my Ph.D. in mathematics and computer science under the supervision of Professors Srecko Brlek, from Université du Québec à Montréal, in Canada, and Laurent Vuillon, from Université de Savoie, in France.

Since August 1st, 2014, I'm a regular assistant-professor at Université du Québec à Montréal, in Canada.

Links

Two useful SSH shortcuts

[français]

On 03/21/2011 by Alexandre Blondin Massé

Like many people working with servers, I use SSH connections a lot, and there are two basic configurations that can save a lot of time: (1) Creating aliases for different connections and (2) Saving the password so that you do not have to enter it every time you establish a connection.

The first part is easy. For instance, suppose I want to type ssh thales instead of ssh blondin@thales.math.uqam.ca every time I connect to the server hosting my personal webpage. Then I have to edit (or create if it does not exist) the file ~/.ssh/config and add the following lines:

Host thales
User blondin
HostName thales.math.uqam.ca

The next part is a bit more complicated. First, you need to enter the commande ssh-keygen. It will ask you to save the key into the file ~/.ssh/id_rsa by default. When this is done, it suffices to append the content of the file ~/.ssh/id_rsa.pub to the .ssh/authorized_keys file on the remote host. This might be done by entering the following one-liner:

cat ~/.ssh/id_rsa.pub | ssh thales 'cat >> .ssh/authorized_keys'

Of course, you need to replace thales by the host you set up in the SSH configuration file.

comments powered by Disqus