[Solved] SSH access on first boot

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[Solved] SSH access on first boot

Postby Saro » Thu Dec 06, 2012 11:33 pm

Hi all,
I am an Arch user who just get his RaspberryPI and I want use my favorite distro on it :)
But Unfortunately I have not an usb keyboard or hdmi monitor available now, so I want test my board using SSH.
So my question is:
Is possible to login in system at first boot through SSH?? If is it possible what are default network settings and user/password data?
Thanks
Last edited by Saro on Mon Dec 10, 2012 10:49 am, edited 1 time in total.
Saro
 
Posts: 4
Joined: Thu Dec 06, 2012 11:26 pm

Re: SSH access on first boot

Postby pepedog » Thu Dec 06, 2012 11:41 pm

ssh is there already, you just have to find out the ip address, which is obtained with dhcpd
root/root for username and password.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: SSH access on first boot

Postby Saro » Thu Dec 06, 2012 11:59 pm

$this->bbcode_second_pass_quote('pepedog', 's')sh is there already, you just have to find out the ip address, which is obtained with dhcpd
root/root for username and password.

Thanks for the really fast answer :)
But If I am using an static IP network? It don't set a default ip address??
Saro
 
Posts: 4
Joined: Thu Dec 06, 2012 11:26 pm

Re: SSH access on first boot

Postby WarheadsSE » Fri Dec 07, 2012 1:21 am

Do you have a dhcp server on the network at all?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: SSH access on first boot

Postby pepedog » Fri Dec 07, 2012 1:43 am

I fully intend to make this easy on next rootfs. Was hoping 3.6 kernel would be good enough to make that.
Will write tomorrow hoe to make static, got some vodka in system, and fighting ISP changes
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: SSH access on first boot

Postby Saro » Fri Dec 07, 2012 9:48 am

$this->bbcode_second_pass_quote('WarheadsSE', 'D')o you have a dhcp server on the network at all?


Yes, I can reconfigure temporarily my switch/router/AP to use dynamic ip, but I would prefer to connect directly Raspberry to ethernet port of my laptop without mess my system with network configuration. Just an plug&ifconfig :)

$this->bbcode_second_pass_quote('', 'I') fully intend to make this easy on next rootfs. Was hoping 3.6 kernel would be good enough to make that.
Will write tomorrow hoe to make static, got some vodka in system, and fighting ISP changes


Thanks. Meanwhile can I modify configuration files directly on SD card in order to use static IP?? (at this moment I am out, so I can't check SD content.)
Saro
 
Posts: 4
Joined: Thu Dec 06, 2012 11:26 pm
Top

Re: SSH access on first boot

Postby pepedog » Fri Dec 07, 2012 2:03 pm

$this->bbcode_second_pass_code('', 'pacman -Sy netcfg
cp /etc/network.d/examples/ethernet-static /etc/network.d/
nano /etc/network.d/examples/ethernet-static
# edit to your liking
nano /etc/conf.d/netcfg
# edit line NETWORKS=(last) and make it NETWORKS=(ethernet-static)
rm /etc/systemd/system/multi-user.target.wants/dhcpcd\@eth0.service
systemctl enable netcfg
sync
reboot')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: SSH access on first boot

Postby admiralspark » Mon Dec 10, 2012 8:56 am

$this->bbcode_second_pass_quote('pepedog', '[')code]pacman -Sy netcfg
cp /etc/network.d/examples/ethernet-static /etc/network.d/
nano /etc/network.d/examples/ethernet-static
# edit to your liking
nano /etc/conf.d/netcfg
# edit line NETWORKS=(last) and make it NETWORKS=(ethernet-static)
rm /etc/systemd/system/multi-user.target.wants/dhcpcd\@eth0.service
systemctl enable netcfg
sync
reboot[/code]


He doesn't have access to the device yet though...but that is how you do it once you establish connection.

Though, we can assume that he can plug it into his local ethernet port and find out which link-local it gave itself. Running $this->bbcode_second_pass_code('', 'arp -a') in windows or linux will show you the connected devices, and the pi should show up. It'll be a 169.254.x.x address. And, hmmm, if that doesn't work, scan the link-local range with an ip scanner.

Or just turn dhcp back on :)
admiralspark
 
Posts: 2
Joined: Fri Nov 23, 2012 2:32 am
Top

Re: SSH access on first boot

Postby Saro » Mon Dec 10, 2012 9:02 am

$this->bbcode_second_pass_quote('admiralspark', '
')He doesn't have access to the device yet though...but that is how you do it once you establish connection.

Though, we can assume that he can plug it into his local ethernet port and find out which link-local it gave itself. Running $this->bbcode_second_pass_code('', 'arp -a') in windows or linux will show you the connected devices, and the pi should show up. It'll be a 169.254.x.x address. And, hmmm, if that doesn't work, scan the link-local range with an ip scanner.

Or just turn dhcp back on :)

Thanks for the tip. But I solved using an other temporary router with dhcp on. Then I installed netcfg and configured it.
Just a question/proposal:
Why netcfg is not included in basic image? I know the Arch KISS philosophy, but it's a light and useful tool. Besides Is possible configure it simply editing config files.
Saro
 
Posts: 4
Joined: Thu Dec 06, 2012 11:26 pm
Top

Re: SSH access on first boot

Postby pepedog » Mon Dec 10, 2012 10:38 am

That is exactly what next rootfs will look like
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 44 guests