HowTo Telnet/ssh to PI in Raspbian “wheezy”


13 posts
by Gert » Thu Oct 25, 2012 8:25 pm
Hi All,

I'm using late model RPI with SD card Raspbian “wheezy” OS (from download page)

I want to operate the RPI headless (only PWR & network plug connected)

The instructions here : http://fusionstrike.com/2012/setting-ss ... -pi-debian
seem to be not correct for my configuration. The quoted step

# sudo mv /boot/boot_enable_ssh.rc /boot/boot.rc

Does not work. (There is no /boot dir )

There is a /root (typo in instructions?) but that does not have the .rc file.

Seems that the instructions will not match the given OS flavor.

Can somebody post instructions on how to do login via network to the RPI for above config?
Telnet (with or without ssh) is fine for now. Plan for later is VNC session.

Thanks,
Gert
Posts: 52
Joined: Wed Oct 24, 2012 10:19 pm
by joan » Thu Oct 25, 2012 8:36 pm
They look like old instructions which are probably irrelevant now.

Have you booted your Pi? I thought the option to enable ssh was offered on initial boot.

Try

sudo raspi-config

from a command prompt.
User avatar
Posts: 4178
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK
by jojopi » Thu Oct 25, 2012 8:40 pm
Those instructions are for an old distro and will not work on current images. You should still have a /boot directory, however!

To enable/disable SSH on current images, use "sudo raspi-config".

Telnet will not be installed by default on any modern Linux distribution. You can probably still install it manually, but for security reasons it would be better to use SSH.
User avatar
Posts: 1873
Joined: Tue Oct 11, 2011 8:38 pm
by billb » Thu Oct 25, 2012 9:12 pm
The Raspbian wheezy image dated 09-18-12 has ssh enabled already.
User avatar
Posts: 173
Joined: Wed Sep 19, 2012 10:27 pm
by Gert » Thu Oct 25, 2012 9:31 pm
Hi billb,

billb wrote:The Raspbian wheezy image dated 09-18-12 has ssh enabled already.


Great. That's the one I have.

Now what are the steps to connect via i.e. putty (from winXP box) ?

1. Is RPI ssh listening on default port 22 ?
2. How to find the RPI local IP address? Remember, it's headless, so no way to type ipconfig -a!
3. Does ssh require any authentication key ?

Thanks,
Gert
Posts: 52
Joined: Wed Oct 24, 2012 10:19 pm
by Dweeber » Thu Oct 25, 2012 9:36 pm
1. Is RPI ssh listening on default port 22 ?
By default Yes
2. How to find the RPI local IP address? Remember, it's headless, so no way to type ipconfig -a!
Most likely the easiest way would be to look at your router and it's listed LAN connections. It should list it there.
Another device on the network like an Android device can probe the network with something like fing as well.
3. Does ssh require any authentication key ?
Only if you set it up to. By default it will use a password.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com
User avatar
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
by Gert » Thu Oct 25, 2012 11:24 pm
Hi Dweeber,

Dweeber wrote:3. Does ssh require any authentication key ?
Only if you set it up to. By default it will use a password.


What's the ssh password in the Raspbian “wheezy” from : http://www.raspberrypi.org/downloads ?

Thanks,
Gert
Posts: 52
Joined: Wed Oct 24, 2012 10:19 pm
by Dweeber » Thu Oct 25, 2012 11:28 pm
Gert wrote:Hi Dweeber,

Dweeber wrote:3. Does ssh require any authentication key ?
Only if you set it up to. By default it will use a password.


What's the ssh password in the Raspbian “wheezy” from : http://www.raspberrypi.org/downloads ?

Thanks,
Gert

On the page it says..
Default login Username: pi Password: raspberry

Unless you changed it already.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com
User avatar
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
by RolfBly » Fri Oct 26, 2012 8:30 am
Dweeber wrote:2. How to find the RPI local IP address? Remember, it's headless, so no way to type ipconfig -a!
Most likely the easiest way would be to look at your router and it's listed LAN connections. It should list it there.
Another device on the network like an Android device can probe the network with something like fing as well.

Dweeber's methods are along the 'stay in your seat' approach. ;) If you don't mind the short walk from your client pc to your Pi:

If you have a monitor hooked up to Pi and an ethernet cable connecting Pi to your router, Pi will get an IP-address from your router and report it's IP-address near the end of the boot sequence. (Your router has to have DHCP on, but most of them have this by default.)
Posts: 16
Joined: Mon Jul 16, 2012 7:07 pm
by Pencoys » Mon Oct 29, 2012 9:27 pm
I have ssh setup and have hardwired? the PI wiredb i/f IP and wireless i/f IP using static IP settings in /etc/network/interfaces.
the PI keeps the same IP so long as you dont change the booting SD to one with different settings.
User avatar
Posts: 11
Joined: Fri Jan 13, 2012 8:48 am
by PogoPi » Fri Jan 11, 2013 11:34 pm
Nice hat!
Posts: 1
Joined: Thu Jan 10, 2013 6:22 pm
by rasbre » Fri Aug 23, 2013 11:54 am
this works very well. I used a free mac app called "lanscan" to find the ip address of the raspberry
Posts: 1
Joined: Thu Aug 15, 2013 2:45 pm
by BarbaryPiRate » Sat Dec 14, 2013 5:12 am
I powered the RPi up completely headless, keyboardless, mouseless: just power and Ethernet, figuring SSH and DHCP were both enabled.

I downloaded and ran Advanced IP Scan (for Windows).

I was initially disappointed because:
* I didn't have my router set up to run a DHCP server
* I didn't wait long enough for the RPi to fetch an IP before scanning

After I discovered the first, and enabled it to run one, I was piddling around trying stuff and re-running scan and finally noticed the scan had discovered the RPi had acquired an IP.

Golden. ssh in. sudo vi /etc/network/interfaces to change
iface eth0 inet dhcp
to:
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
Posts: 2
Joined: Sat Dec 14, 2013 5:04 am