We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-11-29 16:52:38 +0200

How to restart/reload sshd

Hi,

My ssh connections from my PC to my Jolla1 are very very laggy over Wi-Fi : I always have to press to power button and wait a few seconds for the connection to "wake up".

I've enabled the TCPKeepAlive (according to @coderus' comment right below lakutalo's solution) in my /etc/ssh/sshd_config and reloaded the sshd configuration with this but it didn't work, the connection is still very laggy :

$ pgrep -a sshd
12878 sshd: nemo [priv]
12881 sshd: nemo@pts/0 
$ sudo pkill -SIGHUP sshd
Password:              
Connection to 192.168.2.8 closed by remote host.
Connection to 192.168.2.8 closed.
MyPC $ ssh jolla-wlan 
X11 forwarding request failed on channel 0
Last login: Fri Nov 29 15:13:07 2019 from 192.168.2.3

I tried to look for a systemctl sshd service, but it seems the systemctl sshd service is disabled/unused :

$ systemctl list-unit-files | grep ssh                        
sshd-keys.service                         masked  
sshd.service                              disabled
sshd@.service                             static  
sshd.socket                               disabled

Can you help me restart sshd ?

How to restart/reload sshd

Hi,

My ssh connections from my PC to my Jolla1 are very very laggy over Wi-Fi : I always have to press to power button and wait a few seconds for the connection to "wake up".

I've enabled the TCPKeepAlive (according to @coderus' comment right below lakutalo's solution) in my /etc/ssh/sshd_config and reloaded the sshd configuration with this but it didn't work, the connection is still very laggy :

$ pgrep -a sshd
12878 sshd: nemo [priv]
12881 sshd: nemo@pts/0 
$ sudo pkill -SIGHUP sshd
Password:              
Connection to 192.168.2.8 closed by remote host.
Connection to 192.168.2.8 closed.
MyPC $ ssh jolla-wlan 
X11 forwarding request failed on channel 0
Last login: Fri Nov 29 15:13:07 2019 from 192.168.2.3

I tried to look for a systemctl sshd service, but it seems the systemctl sshd service is disabled/unused :disabled/unused:

$ systemctl list-unit-files | grep ssh                        
sshd-keys.service                         masked  
sshd.service                              disabled
sshd@.service                             static  
sshd.socket                               disabled
$ systemctl status sshd@.service 
Failed to get properties: Unit name sshd@.service is not valid.

Can you help me restart sshd ?

How to restart/reload sshd

Hi,

My ssh connections from my PC to my Jolla1 are very very laggy over Wi-Fi : I always have to press to power button and wait a few seconds for the connection to "wake up".

I've enabled the TCPKeepAlive (according to @coderus' comment right below lakutalo's solution) in my /etc/ssh/sshd_config and reloaded the sshd configuration with this but it didn't work, the connection is still very laggy :

$ pgrep -a sshd
12878 sshd: nemo [priv]
12881 sshd: nemo@pts/0 
$ sudo pkill -SIGHUP sshd
Password:              
Connection to 192.168.2.8 closed by remote host.
Connection to 192.168.2.8 closed.
MyPC $ ssh jolla-wlan 
X11 forwarding request failed on channel 0
Last login: Fri Nov 29 15:13:07 2019 from 192.168.2.3

I tried to look for a systemctl sshd service, but it seems the systemctl sshd service is disabled/unused:

$ systemctl list-unit-files | grep ssh                        
sshd-keys.service                         masked  
sshd.service                              disabled
sshd@.service                             static  
sshd.socket                               disabled
$ systemctl status sshd@.service 
Failed to get properties: Unit name sshd@.service is not valid.

BTW : My Jolla1 is running Sailfish OS 3.2

Can you help me restart sshd without having to reboot my Jolla1 ?

How to restart/reload sshd

Hi,

My ssh connections from my PC to my Jolla1 are very very laggy over Wi-Fi : I always have to press to power button and wait a few seconds for the connection to "wake up".

I've enabled the TCPKeepAlive (according to @coderus' comment right below lakutalo's solution) in my /etc/ssh/sshd_config and reloaded the sshd configuration with this but it didn't work, the connection is still very laggy :

$ pgrep -a sshd
12878 sshd: nemo [priv]
12881 sshd: nemo@pts/0 
$ sudo pkill -SIGHUP sshd
Password:              
Connection to 192.168.2.8 closed by remote host.
Connection to 192.168.2.8 closed.
MyPC $ ssh jolla-wlan 
X11 forwarding request failed on channel 0
Last login: Fri Nov 29 15:13:07 2019 from 192.168.2.3

I tried to look for a systemctl sshd service, but it seems the systemctl sshd service is disabled/unused:

$ systemctl list-unit-files | grep ssh                        
sshd-keys.service                         masked  
sshd.service                              disabled
sshd@.service                             static  
sshd.socket                               disabled
$ systemctl status sshd@.service 
Failed to get properties: Unit name sshd@.service is not valid.
$ rpm -q openssh-server
openssh-server-8.0p1+git3-1.6.4.jolla.armv7hl

BTW : My Jolla1 is running Sailfish OS 3.2

Can you help me restart sshd without having to ?

EDIT 0 : The reboot my Jolla1 didn't solve the pb., is the /etc/ssh/sshd_config configuration file ignored ?

How to restart/reload sshd

Hi,

My ssh connections from my PC to my Jolla1 are very very laggy over Wi-Fi : I always have to press to power button and wait a few seconds for the connection to "wake up".

I've enabled the TCPKeepAlive (according to @coderus' comment right below lakutalo's solution) in my /etc/ssh/sshd_config and reloaded the sshd configuration with this but it didn't work, the connection is still very laggy :

$ pgrep -a sshd
12878 sshd: nemo [priv]
12881 sshd: nemo@pts/0 
$ sudo pkill -SIGHUP sshd
Password:              
Connection to 192.168.2.8 closed by remote host.
Connection to 192.168.2.8 closed.
MyPC $ ssh jolla-wlan 
X11 forwarding request failed on channel 0
Last login: Fri Nov 29 15:13:07 2019 from 192.168.2.3

I tried to look for a systemctl sshd service, but it seems the systemctl sshd service is disabled/unused:

$ systemctl list-unit-files | grep ssh                        
sshd-keys.service                         masked  
sshd.service                              disabled
sshd@.service                             static  
sshd.socket                               disabled
$ systemctl status sshd@.service 
Failed to get properties: Unit name sshd@.service is not valid.
$ rpm -q openssh-server
openssh-server-8.0p1+git3-1.6.4.jolla.armv7hl

BTW : My Jolla1 is running Sailfish OS 3.2

Can you help me restart sshd ?

EDIT 0 : The reboot didn't solve the pb., is the /etc/ssh/sshd_config configuration file ignored ?

EDIT 1 : Why does systemctl list-unit-files says sshd.service is disabled :

$ systemctl list-unit-files sshd.service
UNIT FILE    STATE   
sshd.service disabled

1 unit files listed.

How to restart/reload sshd

Hi,

My ssh connections from my PC to my Jolla1 are very very laggy over Wi-Fi : I always have to press to power button and wait a few seconds for the connection to "wake up".

I've enabled the TCPKeepAlive (according to @coderus' comment right below lakutalo's solution) in my /etc/ssh/sshd_config and reloaded the sshd configuration with this but it didn't work, the connection is still very laggy :

$ pgrep -a sshd
12878 sshd: nemo [priv]
12881 sshd: nemo@pts/0 
$ sudo pkill -SIGHUP sshd
Password:              
Connection to 192.168.2.8 closed by remote host.
Connection to 192.168.2.8 closed.
MyPC $ ssh jolla-wlan 
X11 forwarding request failed on channel 0
Last login: Fri Nov 29 15:13:07 2019 from 192.168.2.3

I tried to look for a systemctl sshd service, but it seems the systemctl sshd service is disabled/unused:

$ systemctl list-unit-files | grep ssh                        
sshd-keys.service                         masked  
sshd.service                              disabled
sshd@.service                             static  
sshd.socket                               disabled
$ systemctl status sshd@.service 
Failed to get properties: Unit name sshd@.service is not valid.

BTW : My Jolla1 is running Sailfish OS 3.2

Can you help me restart sshd ?

EDIT 0 : The reboot didn't solve the pb., is the /etc/ssh/sshd_config configuration file ignored ?

EDIT 1 : Why does systemctl list-unit-files says sshd.service is disabled :

$ systemctl list-unit-files sshd.service
UNIT FILE    STATE   
sshd.service disabled

1 unit files listed.

EDIT 2: But systemctl status says it's active and running, ain't it weird ? :

$ systemctl status sshd.service                                               
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/lib/systemd/system/sshd.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-11-29 19:56:22 CET; 11min ago
  Process: 21554 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 21491 (sshd)
   CGroup: /system.slice/sshd.service
           └─21491 /usr/sbin/sshd -D

How to restart/reload sshd

Hi,

My ssh connections from my PC to my Jolla1 are very very laggy over Wi-Fi : I always have to press to power button and wait a few seconds for the connection to "wake up".

I've enabled the TCPKeepAlive (according to @coderus' comment right below lakutalo's solution) in my /etc/ssh/sshd_config and reloaded the sshd configuration with this but it didn't work, the connection is still very laggy :

$ pgrep -a sshd
12878 sshd: nemo [priv]
12881 sshd: nemo@pts/0 
$ sudo pkill -SIGHUP sshd
Password:              
Connection to 192.168.2.8 closed by remote host.
Connection to 192.168.2.8 closed.
MyPC $ ssh jolla-wlan 
X11 forwarding request failed on channel 0
Last login: Fri Nov 29 15:13:07 2019 from 192.168.2.3

I tried to look for a systemctl sshd service, but it seems the systemctl sshd service is disabled/unused:

$ systemctl list-unit-files | grep ssh                        
sshd-keys.service                         masked  
sshd.service                              disabled
sshd@.service                             static  
sshd.socket                               disabled
$ systemctl status sshd@.service 
Failed to get properties: Unit name sshd@.service is not valid.

BTW : My Jolla1 is running Sailfish OS 3.2

Can you help me restart sshd ?

EDIT 0 : The reboot didn't solve the pb., is the /etc/ssh/sshd_config configuration file ignored ?

EDIT 1 : Why does systemctl list-unit-files says sshd.service is disabled :

$ systemctl list-unit-files sshd.service
UNIT FILE    STATE   
sshd.service disabled

1 unit files listed.

EDIT 2: But systemctl status says it's active and running, ain't it weird ? :

$ systemctl status sshd.service                                               
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/lib/systemd/system/sshd.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-11-29 19:56:22 CET; 11min ago
  Process: 21554 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 21491 (sshd)
   CGroup: /system.slice/sshd.service
           └─21491 /usr/sbin/sshd -D

EDIT 3: I've never started sshd on my Jolla1 manually, how come it be running if the sshd.service is disabled ?