Linux or Mac systems use SSH to connect Raspberry Pi

Source: Internet
Author: User
Tags free ssh ssh access passwordless ssh


You can use SSH to connect to your Raspberry Pi on a Linux or Mac computer (or another Raspberry Pi) terminal, and you don't need any other software.


You need to know your Raspberry Pi IP address to connect to it. Query IP, you can enter the command "Hostname-i" on the Raspberry Pi terminal. Also, if you run a Raspberry Pi without a monitor, you can view the list of devices on your router or use a tool like Nmap.


Copy and paste the following commands on the computer's terminal, but replace the <IP> with your Raspberry Pi IP. Use CTRL + Shift + V on the terminal to paste.

SSH [email protected]<ip>


If you receive an connection timed out (connection timeout) error, chances are that you lost your Raspberry Pi IP.


If the connection is successful, you will see a warning about security validation. Enter Yes to continue, you will only see this warning on the first connection.


Sometimes your Raspberry Pi may take up an IP address that your computer used to connect (and possibly connect to another network), and you'll get a warning and ask to clear your list of known devices. Follow the instructions, and then use the SSH command again to connect the connection should be successful.


Next, you will be prompted to enter the PI user's password to log in, Raspbian the default password when raspberry. Now you should be able to see the Raspberry Pi prompt, which represents a user found on the Raspberry Pi.

If you add other users to the Raspberry Pi, you can also connect using the same method, just replace the username, for example [email protected]

[Email protected] ~ $


Now that you have telnet to the Raspberry Pi, you can execute the command directly on it.


The documentation for more SSH commands requires only the man SSH input on the terminal.


Configure your Raspberry Pi to allow password-free SSH access via public/private key-value pairs, refer to the passwordless SSH guide.


Original address: Http://www.raspberrypi.org/documentation/remote-access/ssh/unix.md


Linux or Mac systems use SSH to connect Raspberry Pi

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.