Raspberry Pi: Use ssh to talk with your Raspberry Pi

Prepare

这里写图片描述

This brief guide explains how to use ssh to talk with your Raspberry Pi.

You will need:
1 Raspberry Pi connected to your router
(Monitor and keyboard.)

If you are looking for a guide to access your Raspberry Pi from the internet look here:
http://www.instructables.com/id/Raspberry-Pi-as-webserver/


步骤1: Enable ssh on Raspberry Pi

Login with the following information when prompted:
Username: pi
Password: raspberry

Type the following commands:

sudo -i
cd /boot
mv boot_enable_ssh.rc boot.rc
reboot

After Pi is restarted check ip-address with the command
ifconfig
Note the inet addr!

It is a good idea to change password. This is done with the command:

sudo -i
passwd pi

Remember the new password!

After this step you’ll not need to use monitor and keyboard to run commands on your Raspberry any more. See next step!


步骤2: Install Putty On your PC

Picture of Install Putty On your PC

这里写图片描述

Download and install putty.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Start putty.

Add new config with the ipaddress from previous step. (for i.e 192.168.1.12 and port 22)

Save. Click open.

You’ll be prompted
login:
If you done right…

Login with username pi and the password you entered in previous step. (Default password is raspberry)

If you want to install a webserver on your Raspberry Pi look here:
http://www.instructables.com/id/Install-a-webserver-on-Raspberry-Pi/

May the Pi be with you!


Reference

From: http://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/?lang=zh

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值