Create a new Xshell Profile New Connection Name: yourserver Host: yourserveripdomain Port: your ssh port Authentication: public Key Username: yourusername Userkey: youruserkey SSH > Tunneling > Add Type Direction: Local (Outgoing) Source Host: Localhost Listening Port: 3400 Destination Host: Localhost (for rdp host or ip of machine inside ssh network)