Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've made some changes to the sshd_config. As I understand it, now I need to restart the sshd service.

What happens to existing ssh sessions for the users? Any pointers to documentation I need to read?

share|improve this question

migrated from serverfault.com Dec 3 '13 at 2:52

This question came from our site for system and network administrators.

up vote 12 down vote accepted

Existing sessions will remain active, using the pre-restart config. All new sessions will use the new config.

share|improve this answer
Thank you for the answer :-) – Shamil Assylbekov Dec 4 '13 at 17:35

when you do a configuration change, is better if you use reload function, if the agent provide or kill -HUP pid

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.