Dear forum members,
after installing Suse Tumbleweed on my new laptop, I can sftp from this laptop to the desktop, but not from the desktop to the laptop. It works with the old laptop. What am I doing wrong?
Dear forum members,
after installing Suse Tumbleweed on my new laptop, I can sftp from this laptop to the desktop, but not from the desktop to the laptop. It works with the old laptop. What am I doing wrong?
Firewall??
Two questions:
(1) is âsshdâ running?
check with:
systemctl status sshd
(2) Did you open the firewall for the sshd service?
Thereâs actually a place in the installer summary screen where you can enable the sshd service and open the firewall. I always do that, and I never have the problem you are describing.
Die Firewall ist an, aber unter Yast ist in der Zone âHomeâ der Dienst âsshâ erlaubt.
This is what I get if I enter âsystemctl status sshdâ:
sshd.service - OpenSSH Daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: disabled)
Active: active (running) since Thu 2023-12-21 15:30:22 NST; 1h 34min ago
Process: 1294 ExecStartPre=/usr/sbin/sshd-gen-keys-start (code=exited, status=0/SUCCESS)
Process: 1307 ExecStartPre=/usr/sbin/sshd -t $SSHD_OPTS (code=exited, status=0/SUCCESS)
Main PID: 1320 (sshd)
Tasks: 1
CPU: 23ms
CGroup: /system.slice/sshd.service
ââ1320 âsshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startupsâ
Do you get any errors or is just nothing happening?
If nothing happens, do you maybe have ssh configured to only accept pubkey authentication and not password authentication?
More information about your setup would be great.
I think I enabled ssh in the installer screen: It was a few weeks ago, though.
I can ping the laptop, but if I sftp it, it says âno route to hostâ.
run an nmap scan against the IP of the laptop from the desktop to see if the port for ssh is open.
sudo nmap -sV IP-of-your-laptop
if nmap cannot connect to the IP either, then maybe thereâs an issue in your network.
Are you using your home router as your DNS server?
The response to the nmap command is:
âAll 1000 scanned ports on 192.168.2.22 are in ignored states.â
run âsudo systemctl disable firewalldâ on the laptop and then run the nmap scan again and see if the port is now listed as open.
I did that, and the nmap result changed from
Not shown: 990 filtered tcp ports
to 989 filtered tcp ports.
I still cannot sftp to the laptop, though.
So port 22 is listed as open but sftp still does not work? I assume you cannot ssh into the laptop either?
Can you paste the content of your /etc/ssh/sshd_config from the laptop please
There is no such file. There is a directory /etc/ssh/sshd_conf.d, in fact two of these, but they are empty.
Sorry, one directory is ssh_config.d, the other is sshd_config.d.
Weird. Can you run âsudo zypper in -y openssh-serverâ and see if the file exists afterwards? If it does, run âsudo systemctl restart sshdâ to reinitialize the ssh server and try to sftp into the laptop again.
According to Yast, openssh-server is installed. Shall I do the zypper command nonetheless?
No /etc/ssh/sshd_config just means theyâre using the default one in /usr/etc/ssh/ssh_config
Oh yes, this file exists. Here it is:
Include /etc/ssh/ssh_config.d/.conf
Include /usr/etc/ssh/ssh_config.d/.conf
Host *
ForwardX11Trusted yes
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
SendEnv LC_IDENTIFICATION LC_ALL
Sorry, this seems to be one of the things tumbleweed does differently from leap.
However, after installing openssh-server and starting the service with âsudo systemctl start sshdâ I was able to âsshâ into the VM from the VM itself. Try restarting the service and see if you can ssh into the laptop from the laptop. If that doesnât work either, then maybe one of the more experienced users here can help you.