If you’ve left the defaults unchanged, the username will be “pi” and the password will be “raspberry”. You just have to open Terminal and enter this command: ssh here represents your IP address, of course.)Īfter issuing the command, you’ll be prompted with a security alert. Mac OS XĮstablishing an SSH connection to the Raspberry Pi on Mac OS X is very straightforward, since the operating systems comes with Terminal installed. If you don’t know much about Linux commands, here’s a comprehensive list. You are now connected to your Pi and can control the device remotely with Linux commands. If you haven’t changed the defaults, your username will be “pi” and your password will be “raspberry”. You’ll get a security alert next – go ahead and hit “Yes” on that.įinally, log in to your Raspberry Pi. Make sure that the “Port” field has a value of “22.” See the “Host Name (or IP address)” field? That’s where you’ll want to enter your Raspberry Pi’s IP address as determined in the previous step. You’ll be greeted with a screen like this: Once you’ve finished downloading, go ahead and launch putty.exe. Just choose putty.exe’s 32 bit or 64 bit version, depending on which version of Windows you have. In the words of its creator, PuTTY is “a free implementation of SSH and Telnet for Windows and Unix platforms.” You can download PuTTY here. To connect to your Raspberry Pi with SSH, you’ll need a popular program called PuTTY. Whether you want to connect on your home network (with a private IP address) or from outside your network (with the public IP address), you’re going to need to remember the digits, so write your IP address down! Step 3: SSH into your Raspberry Pi Windows You IP address will be in this format: #.#.#.# – where each # is a digit, of course. Just head to a search engine – like DuckDuckGo, the default search engine on Raspbian – and type “what is my IP address.” Hit search and your search engine of choice should provide your answer. Obtaining your public IP address is very easy. If you want to connect to your Pi from outside of your home network, you will have to set up port forwarding and determine your public IP address instead. If you’re going to connect to your Raspberry Pi from inside your home network, open Terminal and enter this command: hostname -I In order to connect to your Raspberry Pi, you have to know your Raspberry Pi’s IP address. Now the SSH server is enabled and you can exit the config. You are asked whether you would like the SSH server to be enabled. Then head over to Advanced Options and select SSH. Open Terminal and enter this command: sudo raspi-config Head over to Preferences > Raspberry Pi Configuration and click on “Interfaces.” While there, select “SSH: Enabled.” Which method you use is entirely up to you! We’ll cover both below. This can be done two ways: using the GUI or using Terminal. How to SSH into the Raspberry Pi Step 1: Enable SSHĪs you might remember from our FTP server how-to, the first thing we need to do is make sure that SSH is enabled on your Raspberry Pi. Remote access to your Raspberry Pi is especially handy if your Pi is acting as a web server – or as any kind of server, for that matter. With an SSH connection, you can access your Raspberry Pi remotely from another device – whether that be a Mac, PC, or smartphone. Now we’re going to show you how to do something very similar: use SSH (Secure Shell) to access your Raspberry Pi from other devices. In the past, we’ve showed you how to set up an FTP server on a Raspberry Pi.
0 Comments
Leave a Reply. |