devel:misc:ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devel:misc:ssh [2016/05/13 16:44] – [SSH keys] boman | devel:misc:ssh [2017/07/10 18:12] (current) – [SSH keys] boemer | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| A guide about how to configure and use SSH in Ubuntu. | A guide about how to configure and use SSH in Ubuntu. | ||
| - | * How to log into a remote machine? | + | |
| - | * How to configure the login properly with an SSH key and a config file? | + | |
| - | * How to transfer files from one machine to another? | + | |
| ===== Log into a remote machine ===== | ===== Log into a remote machine ===== | ||
| - | Different remote machines are usually used during the software development, | + | Different remote machines are usually used during the software development, |
| ssh username@machine | ssh username@machine | ||
| Line 18: | Line 18: | ||
| For instance, | For instance, | ||
| - | ssh boemer@clifton.ltas.ulg.ac.be | + | ssh boemer@blueberry.ltas.ulg.ac.be |
| The terminal then asks for the password and the connection is established. | The terminal then asks for the password and the connection is established. | ||
| Line 24: | Line 24: | ||
| Always having to type the full '' | Always having to type the full '' | ||
| - | ssh clifton | + | ssh blueberry |
| Line 36: | Line 36: | ||
| SSH keys are similar to passwords. | SSH keys are similar to passwords. | ||
| - | The public key has to be transfered to the remote machine by the command '' | + | The public key has to be transfered to the remote machine by the command '' |
| When you try to connect for the next time to the remote machine, no password will be asked since the ssh command compares your private key in '' | When you try to connect for the next time to the remote machine, no password will be asked since the ssh command compares your private key in '' | ||
| Line 43: | Line 43: | ||
| <note tip> You might want to connect from one remote machine immediately to another remote machine without entering the password, e.g. | <note tip> You might want to connect from one remote machine immediately to another remote machine without entering the password, e.g. | ||
| - | ssh boemer@clifton.ltas.ulg.ac.be | + | ssh boemer@blueberry.ltas.ulg.ac.be |
| ssh boemer@fabulous.ltas.ulg.ac.be | ssh boemer@fabulous.ltas.ulg.ac.be | ||
| | | ||
| - | The easiest way to do so is to copy your private key '' | + | The easiest way to do so is to copy your private key '' |
| - | scp .ssh/id_rsa boemer@clifton.ltas.ulg.ac.be: | + | scp .ssh/id_rsa boemer@blueberry.ltas.ulg.ac.be: |
| </ | </ | ||
| Line 60: | Line 60: | ||
| - | <note warning> Previously, it was suggested to copy your private key '' | + | <note warning> Previously, it was suggested to copy your private key '' |
| Line 67: | Line 67: | ||
| To log into a remote machine by typing | To log into a remote machine by typing | ||
| - | ssh clifton | + | ssh blueberry |
| | | ||
| instead of | instead of | ||
| - | ssh boemer@clifton.ltas.ulg.ac.be | + | ssh boemer@blueberry.ltas.ulg.ac.be |
| | | ||
| a configuration file named '' | a configuration file named '' | ||
| - | Host clifton | + | Host blueberry |
| - | HostName | + | HostName |
| User boemer | User boemer | ||
| IdentityFile ~/ | IdentityFile ~/ | ||
| Line 85: | Line 85: | ||
| ===== File transfer ===== | ===== File transfer ===== | ||
| - | Besides using FileZilla, files can also be directly transfered by SSH, or more precisely, by SCP, i.e. Secure Copy. For instance, the '' | + | Besides using FileZilla, files can also be directly transfered by SSH, or more precisely, by SCP, i.e. Secure Copy. For instance, the '' |
| - | scp .ssh/config boemer@clifton.ltas.ulg.ac.be: | + | scp .ssh/config boemer@blueberry.ltas.ulg.ac.be: |
| Or, in short, | Or, in short, | ||
| - | scp .ssh/ | + | scp .ssh/ |
devel/misc/ssh.1463150662.txt.gz · Last modified: by boman
