IT/Software/Command Line Applications/ssh: Difference between revisions

From msgwiki
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary
No edit summary
 
Line 1: Line 1:
=== Basics ===
===Basics===
ssh is a massive tool in itself
ssh is a massive tool in itself


Line 5: Line 5:


Secondly it provides a tunnel that many things can use
Secondly it provides a tunnel that many things can use
*NoMachine can use it and get a secure connection without paying for Enterprise
*NoMachine can use it and get a secure connection without paying for Enterprise
*FileZilla uses it for secure ftp
*FileZilla uses it for secure ftp
*rsync uses it with the -e ssh option.
*rsync uses it with the -e ssh option.


=== Keys ===
===Keys===
If you connect often to another machine you may want to exchange keys for passwordless access
If you connect often to another machine you may want to exchange keys for passwordless access
*Create the key on your computer
*Create the key on your computer
**Just keep hitting enter throughout the process
**Do NOT sudo ssh-keygen
<code>ssh-keygen</code>
<code>ssh-keygen</code>
**Just keep hitting enter.
 
*Copy the key to the remote computer.
*Copy the key to the remote computer.
<code>ssh-copy-id -i ~/.ssh/id_rsa.pub user@hostname</code>
<code>ssh-copy-id -i ~/.ssh/id_rsa.pub user@hostname</code>
*Now you can login with no password
*Now you can login with no password
<code>ssh user@hostname</code>
<code>ssh user@hostname</code>

Latest revision as of 15:52, 22 April 2020

Basics

ssh is a massive tool in itself

BUT its biggest benefit is providing direct access to the terminal on other computers.

Secondly it provides a tunnel that many things can use

  • NoMachine can use it and get a secure connection without paying for Enterprise
  • FileZilla uses it for secure ftp
  • rsync uses it with the -e ssh option.

Keys

If you connect often to another machine you may want to exchange keys for passwordless access

  • Create the key on your computer
    • Just keep hitting enter throughout the process
    • Do NOT sudo ssh-keygen

ssh-keygen

  • Copy the key to the remote computer.

ssh-copy-id -i ~/.ssh/id_rsa.pub user@hostname

  • Now you can login with no password

ssh user@hostname