Squeeze setup ssh: Difference between revisions

From embeddedTS Manuals
mNo edit summary
No edit summary
 
Line 5: Line 5:


Make sure your board is configured properly on the network, and set a password for your remote user.  SSH will not allow remote connections without a password or a shared key.
Make sure your board is configured properly on the network, and set a password for your remote user.  SSH will not allow remote connections without a password or a shared key.
 
{{Note|Setting up a password for root is only feasible on the uSD image.}}
<source lang=bash>
<source lang=bash>
passwd root
passwd root

Latest revision as of 15:07, 29 April 2020

On our boards we include the Debian package for openssh-server, but we remove the automatically generated keys for security reasons. To regenerate these keys:

dpkg-reconfigure openssh-server

Make sure your board is configured properly on the network, and set a password for your remote user. SSH will not allow remote connections without a password or a shared key.

Note: Setting up a password for root is only feasible on the uSD image.
passwd root

You should now be able to connect from a remote Linux or OSX system using "ssh" or from Windows using a client such as putty.

Note: If your intended application does not have a DNS source on the target network, it can save login time to add "UseDNS no" in /etc/ssh/sshd_config.