Basic info: Server OS: CentOS 6.3 Client tool: PuTTY
I SSH to my server using PuTTY. I added an account with /sbin/nologin shell. When I log on to that account (selecting "never" close window on exit), console says "This account is currently not available" and PuTTY prompts "Connection closed by remote host".
But I expect the server should only say "account not available" without closing the connection, so that I can still tunneling through this connection.
I also noticed that for normal /bin/bash users, when typing exit, sometimes the connection is closed, sometimes the server says "LOGOUT" but still connected (I can still tunneling through it).
So how can I ensure a connection not to be closed for a nologin shell account?