In this recipe, we will connect to the Banana Pi using SSH on Linux or other Unix-like operating systems such as Mac OS X or FreeBSD. You probably have installed the required OpenSSH client already.
You will need the following ingredients to connect to your Banana Pi using SSH:
To connect to your Banana Pi, you only need to perform the following steps:
ssh
command into your shell:$ ssh -l bananapi 192.168.178.37
yes
to trust the server and hit Enter.bananapi
that is also bananapi
by default.Afterwards, you will see the shell of your Banana Pi on your terminal application.
The following screenshot shows an SSH login to the Banana Pi from a Linux PC running the xfce4-terminal
terminal application:
On most Unix-like systems, you are able to connect to remote SSH servers by default, as the required SSH client program is often already installed.
That program requires at least a destination IP address or hostname. We prepend the -l
(login) parameter to choose a desired user for the login. If you do not enter a user to login, the local user that is currently trying to run the command will be chosen (rel
in the previous screenshot).
As you can see in the previous screenshot, you can also shorten the command by typing the following command:
$ ssh username@host
Most SSH client installations on Unix-like operating systems are able to read an optional configuration file to apply parameters to a desired host. If you append the following configuration to the file ~/.ssh/config
(which will need to be created if not already existing), you can connect to your Banana Pi easily via ssh banana
.
Host banana HostName 192.168.178.37 User bananapi
As always, you need to replace the IP address after HostName
with the correct IP address of the Banana Pi or the hostname. You can choose the name after Host
(banana
in the previous example) as you like. If you have more than one host configured, each name must be unique. Also, you can append a lot more parameters to the host configuration.
18.222.204.247