Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    What your OS is? Commented Aug 16, 2020 at 19:10
  • My OS is Ubuntu or can be any other Linux distro Commented Aug 16, 2020 at 19:12
  • 1
    "then allows the SSH session to start" This is actually pretty vague. The client makes a TCP connection to the server, negotiations encryption, authenticates, and then can create one or more shell sessions, SFTP sessions, TCP port forwards, and so on. At what point in this process should this command run? Should it run for SFTP sessions or sessions that only do port forwarding? If a person makes one SSH connection and runs two different shell commands through it, should the command run twice? Commented Aug 16, 2020 at 21:59