to access your Raspberry Pi by SHH, has many advantages. The Secure Shell is especially useful if you, for example, the Rpi &# 8220; headless&# 8221; used as a NAS, music streaming box, or the like but even if you want to start a program only briefly nachgucken little or no extra turn the monitor or switch the input.
Who controls some shell commands via SSH can also quickly Raspberry Pi operate without having to use a graphical interface. So you can import fast updates, install programs or copy and delete data.
In the current versions of Rpi and Raspbian you need SSH for only activate in older versions or other distributions, it may be necessary that it previously only installed the SSH server. We tell you in this guide as you both done and also how her (by computer Windows, macOS & Linux) and can quickly access the tiny all-purpose servant by Android smartphone.
Raspberry Pi 3 now from Amazon*
Install SSH: Raspberry Pi & activate
In the current versions of Raspbian the SSH server is usually already installed. If you use an older version or has not installed the SSH another distribution, you can make up for this but quickly with the following commands. Opens a terminal on your Raspberry Pi and give the following commands:
- Install SSH:
sudo apt-get install ssh
- can automatically start SSH server:
sudo update-rc.d ssh defaults
- (Optional) If the SSH server to start at system startup does not always automatically, you can also start it manually using the following command:
sudo /etc/init.d/ssh start
In the current versions of Raspbian SSH is already installed, here you just have to make sure that the option is enabled. For this you proceed as follows:
- Open a terminal and type the following command:sudo Raspi-config
- The following Config menu you select Advanced Options.
- Now you select the SSH option.
- with Enable enabled her SSH, Disable with their unchecked.
Raspberry Pi: SSH on computer & use smartphone
If the SSH server on your Raspberry Pi running, you can now shell commands easily send from your computer or Android smartphone to your Pi and have them implemented. Depending on the operating system you need additional pieces of software, and the host name or IP of your Raspberry Pis and its password. By default, the following:
We provide you here the possibilities for Windows, Linux, and Android macOS steps:
Linux & macOS
Usually you need on the different Linux distributions and macOS any additional software. You just start a terminal and give the SSH command followed by the host name or IP address. This should look like this:
Finally, you must have a password set by you or the default password &# 8220; raspberry&# 8221; Enter to have access to your single board.
benötig yet an additional program it on Windows, with which you can use the Secure Shell. One of the best known and most widely used programs for this purpose is PuTTY. To connect with PuTTY SSH with your Raspberry Pi, you go as follows:
- Invite you PuTTY downloads and installs it.
- Starts the program and give the Host Name, type the name or IP Eueres RPI.
- When Connection Type SSH selects.
- Finally click on Open to connect you with your Raspberry Pi.
- Before you have access, you have still the set of you and enter the default PW your RPI.
Also for Android you need before an SSH app. For these purposes, you can use the open-source program ConnectBot. Is as follows:
- Installed the app ConnectBot through the Google Play Store on your Android device.
downloadQR codeConnectBotDeveloper: Kenny Root, Jeff Sharkey, Torne Woof, Paul EvansPrice: Free
- Give below the host name or the current IP address of Raspberry Pis and tapping Enter.
- Confirmed afterwards that you want to connect by their taps on the Yes button.
- Now you have to do is enter the password and can shell commands via Android device send to your Rpi.
Posted In: software