Next Previous Contents

7. Getting an interactive login using smbclient over SSH

Another thing you may want to do is get an interactive ftp-like login to the remote share on windows_server through your SSH tunnel. This can be achieved using the smbclient tool and again telling it the ip address (and port if you chose a port other than 139) to use thus stopping it from resolving the NETBIOS names ip in the usual way it would.

The command you would execute to get an ftp style login to the remote share over the SSH tunnel is as follows (remembering to replace the hostnames I use with your relevant ip addresses.

smbclient //windows_server_NETBIOS_NAME/destination_folder -U WINDOWS_USER -I 127.0.0.1

You should now get a prompt much like you would for ftp. Typing ls should give you a directory listing.


Next Previous Contents