If sshd is restart will any connections be disconnected

Q. I have dedicated Linux server located in remote data center. My questions if sshd is restarts will any connections are disconnected?

ADVERTISEMENTS

A. No ssh will not disconnect your ssh existing ssh session. You can use normal ssh restart command:
# /etc/init.d/ssh restart

Similarly when you restart network ssh session will not be disconnected:
# /etc/init.d/network restart

However if you are making any changes to iptables based firewall script, you may loss the connectivity due to wrong iptables rules.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
3 comments… add one
  • inam Nov 24, 2006 @ 0:21

    how can i stop the clients ;that don’t ssh to my computer

    • h8liu Feb 10, 2013 @ 6:11

      I guess you can kill that particular sshd process.

  • inam Nov 24, 2006 @ 0:31

    how can i mount a vfat filesystem through autofs
    as i have already configure the file /etc/auto.mis and /etc/auto.master before; like below but i does’nt work;
    /etc/auto.misc is configured like
    winfat -fstype=vfat :/dev/hda6
    and /etc/auto.master is configured like
    /auto /etc/auto.misc –timeout=60

    can autofs mount Vfat file system

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.