Debian: Enable SSH: Difference between revisions

From wiki.jacobjohns.com
jwiki>jjohns
Created
 
jwiki>jjohns
No edit summary
Line 1: Line 1:
[[File:Debian logo.png|center|frameless]]
[[File:Debian logo.png|center|frameless]]
 
<hr /><br />
# Install openssh-server
# Install openssh-server
#* <code>apt install openssh-server -y</code>
#* <code>apt install openssh-server -y</code>

Revision as of 14:42, 21 July 2024

Error creating thumbnail: File missing


  1. Install openssh-server
    • apt install openssh-server -y
  2. Check the service is running after installation
    • systemctl status ssh
  3. If not running start the service
    • systemctl start ssh
  4. Enable ssh at startup
    • systemctl enable ssh
  5. Optionally enable root access (not secure)
    • Open /etc/ssh/sshd_config
    • Add the following to the end of the file, search for and change the value, or uncomment the line.
      • PermitRootLogin yes
    • Restart ssh service
      • systemclt restart ssh