Securing remote shell access