Stretch setup ssh: Difference between revisions

From embeddedTS Manuals
(Add information specific to Debian Stretch)
(Formatting)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
To install ssh, install the package as normal with apt-get:
To install the SSH server, install the package with apt-get:
<source lang=bash>
<source lang=bash>
apt-get install openssh-server
apt-get install openssh-server
Line 5: Line 5:




Debian Stretch by default disallows logins directly from the user "root". Additionally, SSH will not allow remote connections without a password or value SSH key pair. This means in order to SSH to the device, a user account must first be created, and a password set:
Debian Stretch by default disallows logins directly from the user "root". Additionally, SSH will not allow remote connections without a password or valid SSH key pair. This means in order to SSH to the device, a user account must first be created, and a password set:
<source lang=bash>
<source lang=bash>
useradd --create-home --shell /bin/bash newuser
useradd --create-home --shell /bin/bash newuser

Latest revision as of 13:11, 23 August 2019

To install the SSH server, install the package with apt-get:

apt-get install openssh-server


Debian Stretch by default disallows logins directly from the user "root". Additionally, SSH will not allow remote connections without a password or valid SSH key pair. This means in order to SSH to the device, a user account must first be created, and a password set:

useradd --create-home --shell /bin/bash newuser
passwd newuser


After this setup it is now possible to connect to the device as user "newuser" from a remote PC supporting SSH. On Linux/OS X this is the "ssh" command, or from Windows using a client such as PuTTY.