User Tools

Site Tools

tools:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:ssh [2025/09/09 21:35] Humphrey Boa-Garttools:ssh [2025/09/30 22:44] (current) – external edit 127.0.0.1
Line 13: Line 13:
 ===== Implementations ===== ===== Implementations =====
  
-==== Linux ====+==== Linux, BSD & MacOS ====
  
-Most Linux distros come with [[https://www.openssh.com/|OpenSSH]], a package which has both an SSH client and a server. To make an SSH connection in your [[tools:bash|terminal]], run the ''ssh'' command against a domain or IP address, and when prompted give your password:+MacOS and most *nix distros come with [[https://www.openssh.com/|OpenSSH]]. To make an SSH connection in your [[tools:bash|terminal]], run the ''ssh'' command against a domain or IP address, and when prompted give your password:
  
   $ ssh username@domain.com   $ ssh username@domain.com
Line 85: Line 85:
 ===== Other Key Uses ==== ===== Other Key Uses ====
  
-The same key pairs generated by ''ssh-keygen'' or PuTTYgen can be used for things beyond remote terminals. For example, Github supports the use of key pairs for pushing updates to repos. Some services might not support ed25519-based keys. To generate a 4096 bit RSA key with ''ssh-keygen'', run:+The same key pairs generated by ''ssh-keygen'' or PuTTYgen can be used for things beyond remote terminals. For example, Github supports the use of key pairs for pushing updates to repos. 
 + 
 +Some services might not support ed25519-based keys. To generate a more widely-compatible 4096 bit RSA key, run:
  
   $ ssh-keygen -t rsa -b 4096 -C "youremail@domain.com"   $ ssh-keygen -t rsa -b 4096 -C "youremail@domain.com"
-  + 
 + 
 +===== File Transfer over SSH ===== 
 + 
 +You can also use SSH to securely transfer files between machines, using the built-in ''sftp'' command. Read our [[tools:sftp|SFTP manual]] for more information on how to do this. 
 + 
 + 
 +===== Running SSH Servers ===== 
 + 
 +[[https://www.openssh.com/|OpenSSH]], the package that provides MacOS and most Linux distros with their SSH client, also includes a separate SSH server application. Most servers will have this service preconfigured as a daemon, as there would be no way to log in to the machine without it. If you wish to build your own SSH server there are many options, but OpenSSH is the most well-known and widely supported. 
 + 
 +Make sure to install and configure [[tools:ufw|ufw]] and [[tools:fail2ban|fail2ban]] if you have an SSH server that is accessible to the open internet! 
    
 {{tag>Tools Shells Tunneling}} {{tag>Tools Shells Tunneling}}
tools/ssh.1757453751.txt.gz · Last modified: (external edit)

Find this page online at: https://bestpoint.institute/tools/ssh