You are not logged in.
Pages: 1
Hello
I have two computers here with arch linux, one is server, one is desktop/server.
Bot has static ips.
Server: 192.168.1.10
Desktop: 192.168.1.1
There is a wireless router(apple airport express) and a gigabit switch between, I have configured the switch to open up port 22 for both ips in any way.
I control MPD allready with the desktop, MPD is running on the server, that connection uses port 6600. And works fine.
But, when I try to ssh the server from the desktop I get:
[roberth@R2D2 ~]$ ssh 192.168.1.10
ssh: connect to host 192.168.1.10 port 22: Connection refused
Please can anybody help me:(
Use the Source, Luke!
Offline
To add info, can changing a port help? I don't know if port 22 is required in any way?
Use the Source, Luke!
Offline
Connect using:
# ssh -vvv <user>@<adress/hostname>Offline
[roberth@R2D2 ~]$ ssh -vvv root@192.168.1.10
OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22.
debug1: connect to address 192.168.1.10 port 22: Connection refused
ssh: connect to host 192.168.1.10 port 22: Connection refused
Last edited by Roberth (2012-09-08 18:55:28)
Use the Source, Luke!
Offline
On the target machine do you a) have openssh installed, b) have sshd running, and c) have sshd configured correctly?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
echo "big enormous facepalm" > "on my self"
The ssh daemon wasn't running on the target machine. Have only tested so far from my iphone which are connected to the router, and it works great.
Im going into the dark corner of shame and humilition for a while.....
Use the Source, Luke!
Offline
Heh, glad you got it sorted. Have fun in your corner. ![]()
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
But now the target doesn't get any connection with the internet, only the local network, works with ssh and mpd.
Bah....
Use the Source, Luke!
Offline
So "server" cannot access the internet, but "desktop" can ssh into "server"?
Seems like you may have a problem with your router and/or switch configuration.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Okay?
Well I have an apple airport express, quite simple little router, with only the most common settings like port forwarding and wireless encryption etc.
Internet connection works fine from the desktop which uses static ips with the same adresses(exept the one who is unique for the computer) and it is connected to the router exact same way.
Use the Source, Luke!
Offline
Well, what happens if you run "traceroute <external IP address>" on the server?
e.g.
traceroute 1.1.1.1Last edited by WorMzy (2012-09-09 00:04:47)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I don't have that tool installed. So I am afraid I dont know do get that done, TBH.
Use the Source, Luke!
Offline
Presumably "Desktop" has internet access as well as local network access? In that case, "pacman -Sw traceroute" will download the package, and "scp" can be used to transfer files to "Server"..
Alternatively, install sshfs on Desktop, mount Server's filesystem using it (e.g. at /mnt), then use "pacman -r /mnt -S traceroute".
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
[root@C3PO ~]# ping 192.168.0.0
connect: Network is unreachable
If it adds any info.
EDIT: to clarify, C3PO is the server(it's annoying just like the character right now) and R2D2 is my desktop(its usefull and not annoying).
Last edited by Roberth (2012-09-09 00:41:39)
Use the Source, Luke!
Offline
[root@R2D2 mnt]# sshfs root@192.168.0.10:/ /mnt
read: Connection reset by peer
.....
Last edited by Roberth (2012-09-09 01:05:02)
Use the Source, Luke!
Offline
[root@R2D2 roberth]# ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_req=1 ttl=64 time=0.136 ms
64 bytes from 192.168.1.10: icmp_req=2 ttl=64 time=0.174 ms
64 bytes from 192.168.1.10: icmp_req=3 ttl=64 time=0.174 ms
64 bytes from 192.168.1.10: icmp_req=4 ttl=64 time=0.167 ms
Last edited by Roberth (2012-09-09 01:48:46)
Use the Source, Luke!
Offline
Mounting C3PO with sshfs went just fine after editing the settings on my router. but, still no internet connection for C3PO.
Last edited by Roberth (2012-09-09 01:55:32)
Use the Source, Luke!
Offline
When setting only static ips for the ip thyats unique for the computer in local network and let dhcp do the rest solved it. Probably an ip conlict somewhere who cause the issue I had.
Use the Source, Luke!
Offline
Pages: 1