You are not logged in.

#1 2021-01-09 10:33:42

Snubbi
Member
From: Denmark
Registered: 2020-05-23
Posts: 13

[SOLVED] ssh installation with wired network

I'm trying to install Arch on my laptop. I'm on a local network. Here's what I've done on my laptop.

Booted up on a usb-stick with Arch ISO


set a root password (passwd)
allow ssh root login (nano /etc/ssh/sshd_config)

Removed hash sign from port 22 and PermitRootLogin yes

enable sshd (systemctl enable sshd)
enable systemd-networkd (systemctl enable systemd-networkd.service)

Reboot my laptop and execute following command:

ip addr show

And it says

inet 192.168.1.127/24 brd 192.168.1.255 scope global dynamicenp0s25"

From my desktop, I execute the following command in a terminal:

ssh root@192.168.1.127

Then I be told the following:

ssh: connect to host 192.168.1.127 port 22: Connection refused

Then I try to ping

ping 192.168.1.127
PING 192.168.1.127 (192.168.1.127) 56(84) bytes of data.
64 bytes from 192.168.1.127: icmp_req=1 ttl=64 time=0.463 ms
64 bytes from 192.168.1.127: icmp_req=2 ttl=64 time=0.460 ms
64 bytes from 192.168.1.127: icmp_req=3 ttl=64 time=0.491 ms
64 bytes from 192.168.1.127: icmp_req=4 ttl=64 time=0.460 ms
^C
--- 192.168.1.127 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3020ms
rtt min/avg/max/mdev = 0.460/0.468/0.491/0.025 ms

It's going well. What am I doing wrong?

Last edited by Snubbi (2021-01-09 12:55:08)


"Do not judge me by my successes, judge me by how many times I fell down and got back up again." - Nelson Mandela

Offline

#2 2021-01-09 11:01:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] ssh installation with wired network


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2021-01-09 12:05:33

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: [SOLVED] ssh installation with wired network

all thats needed is to boot the live iso, add a root password, and start sshd

passwd
systemctl start sshd

thats it, and i guess find out the ip address to connect to

ip addr

then ssh away, ezpz

Offline

#4 2021-01-09 12:54:24

Snubbi
Member
From: Denmark
Registered: 2020-05-23
Posts: 13

Re: [SOLVED] ssh installation with wired network

I found the solution, I did not reboot, and did the following

set a root password (passwd)
allow ssh root login (nano /etc/ssh/sshd_config)

Removed hash sign from port 22 and PermitRootLogin yes

enable sshd (systemctl enable sshd)
enable systemd-networkd (systemctl enable systemd-networkd.service)

systemctl start sshd

I forgot systemctl start sshd


[carl@andersen:  ~]$ ssh root@192.168.1.130
root@192.168.1.130's password:
To install Arch Linux follow the installation guide:
https://wiki.archlinux.org/index.php/Installation_guide

For Wi-Fi, authenticate to the wireless network using the iwctl utility.
Ethernet and Wi-Fi connections using DHCP should work automatically.

After connecting to the internet, the installation guide can be accessed
via the convenience script Installation_guide.

Last login: Sat Jan  9 12:46:05 2021 from 192.168.1.147
root@archiso ~ #

I am happy now  smile


"Do not judge me by my successes, judge me by how many times I fell down and got back up again." - Nelson Mandela

Offline

Board footer

Powered by FluxBB