How to use SSH

From BananaPro/Pi
Jump to: navigation, search

Other languages:
English • ‎中文(简体)‎


Secure Shell, or SSH, is a cryptographic(encrypted) network protocol for initiating text-based shell sessions on remote machines in a secure way. It allows a user to run commands on a machine's command prompt without being physically present near the machine. It also allows a user to establish a secure channel over an insecure network in a client-server architecture, connecting an SSH client application with an SSH server. Common applications include remote command-line login and remote command execution, but any network service can be secured with SSH. The protocol specification distinguishes between two major versions, which are referred to as SSH-1 and SSH-2.

The most visible application of the protocol is for access to shell accounts on Unix-like operating systems, but there're also some limited usages on Windows as well. In 2015 Microsoft announced that they would provide native support for SSH in a future release.

SSH was designed as a replacement for Telnet and other insecure remote shell protocols such as the Berkeley rsh and rexec protocols, which send information, notably passwords, in plaintext, rendering them susceptible to interception and disclosure using packet analysis. The encryption used by SSH is intended to provide confidentiality and integrity of data over an unsecured network, such as the Internet, although files leaked by Edward Snowden indicate that the National Security Agency can sometimes decrypt SSH.


1、A Router
2、A Putty installed on Windowns


For Windowns

Step 1:Make sure your that desktop PC and your SBC are in the same LAN.
List the IP address on desktop PC:
Ipconfig IP Address.png

List the IP address on your SBC:
Ifconfig IP Address.png

Step 2:Select "SSH" option,and set Host Name:your SBC ip address,Port:22.
Putty Configure SSH.png

Step 3:Click "Open" button, you will remotely login your SBC.
Putty SSH Terminal.png

For Linux

Step 1:Install SSH for Desktop PC(ubuntu 12.04)

sudo apt-get install openssh

openssh-client, openssh-server and ssh-import-id will be installed!

Step 2:Login your SBC by SSH

ssh -l username ipaddress

username is user name(lemaker), ipaddress is IP address on your SBC.