Quantcast
Channel: HANDS ON tek
Viewing all articles
Browse latest Browse all 101

Setup SSH in a Raspberry Pi

$
0
0

Configurar o protocolo SSH num Raspberry Pi

Secure Shell (SSH) is a network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers.

In this article I’ll explain you how to install and setup the SHH in a Raspberry Pi and how to use it on Windows.

O SSH (Secure Shell) é, um protocolo de rede que permite a ligação a outro computador na rede de forma a permitir execução de comandos remotamente.

Neste artigo vou-te explicar como podes instalar e configurar o SSH num Raspberry Pi e como utilizá-lo a partir do Windows.


First you have to install the SSH service in the Raspberry Pi. This is done by this command:

Primeiro necessitas de instalar o serviço de SSH no Raspberry Pi, isso é feito com a execução deste comando.

sudo apt-get install ssh

It should take just a few minutes, once it’s ready you should run this command to start the daemon (Unix name for a service):

Deve demorar apenas alguns minutos, assim que o processo finalizar deves correr este comando para iniciar o daemon (o nome Unix para um serviço):

sudo /etc/init.d/ssh start

If you want to stop the service later you can run this command

Se mais tarde quiseres parar o serviço podes correr este comando:

sudo /etc/init.d/ssh stop

If you want to restart it you can run this one

Se quiseres reiniciar o serviço podes correr este:

sudo /etc/init.d/ssh restart

Start it at boot

Inicia o serviço no arranque

To set it up so the SSH server starts every time the Pi boots up, run this command once:

Para inciares o serviço SSH automaticamente cada vez que o Raspberry arranca corre este comando:

sudo update-rc.d ssh defaults

Before going to the Windows type this command to check your IP address, you will need it to connect to the PI.

Antes de irmos para a configuração em Windows executa este comando para saberes o teu endereço IP, vais necessitar dele mais à frente para te ligares ao Raspberry.

ifconfig

On my network my Raspberry Pi is on 192.168.1.75.

Na minha rede o meu Raspberry Pi está em 192.168.1.75.

Access to Raspberry Pi on Windows

Acede ao Raspberry Pi no Windows

Download PuTTy and run it on your Windows pc, PuTTy is a free terminal emulator.

Type the Raspberry Pi IP and, leave the default 22 port value and click Open.

Faz download do PuTTy e executa-o no teu computador Windows, o PuTTy é um emulador de terminal gratuito.

Escreve o IP do teu Raspberry PI, deixa o valor 22 na porta e clica em Open.

A command line will open and you need to authenticate with your Raspberry Pi credentials, if you haven’t change them the default ones are:

User: Pi

Password: Raspberry

O PuTTy vai abrir um terminal e vais ter de autenticar com as tuas credencias do Raspberry Pi, se não ainda não as alteraste os valores originais são:

Nome de utilizador: Pi

Password: Raspberry

You are now ready to control your Raspberry Pi over the network using the command line.

Estás pronto a controlar o teu Raspberry Pi através da rede utilizando a linha de comandos.


Viewing all articles
Browse latest Browse all 101

Trending Articles