Tips and Tricks

Using ssh-agent to log in (Mac OS X)

Are you getting tired of using ‘ssh -i $some_long_key_path> root@$some_long_machine_name‘ to connect to your Amazon machine? You can do the following:

%% eval `ssh-agent`
%% ssh-add $some_long_key_path

and then, until you exit that shell, you can just do

%% ssh root@$some_long_machine_name

and it will no longer ask you for your key.

LICENSE: This documentation and all textual/graphic site content is licensed under the Creative Commons - 0 License (CC0) -- fork @ github. Presentations (PPT/PDF) and PDFs are the property of their respective owners and are under the terms indicated within the presentation.
comments powered by Disqus