Don't forward local port 3389, various versions of Remote Desktop are too smart for their own good.
My usual steps involve forwarding local 3390 to remote 3389. Then, in MacRDC I use: localhost:3390
as the address to connect too.
I don't know if you're using anything to assist in the ssh connection setup, but from the command line, it would be something like:
ssh -L 3390:172.16.5.32:3389 jason@remote.net
Where;
- 3390
is the local forwarding port on my box.
- 172.16.5.32
is the remote windows host. and;
- 3389
is the Remote Desktop Port (obviously).
I'm using the following.
Have a shell command, called myssh
, with content:
PROFILE="$1";shift;
DEF="Basic" #the default profile name
echo "tell app \"Terminal\" to set current settings of first window to settings set \"${PROFILE}\""|osascript
ssh $@
echo "tell app \"Terminal\" to set current settings of first window to settings set \"${DEF}\""|osascript
and use bash aliases for the connect, like:
alias ssweb='myssh Homebrew user@web.example.com'
alias ssmail='myssh Ocean me@mail.example.com'
When I want to ssh into the web server, I simply write ssweb
in the Terminal and I got the "Homebrew" profile. When the ssh session ends, the AppleScript sets back to the "Basic".
The aliases should go into your $HOME/.profile or similar bash-startup file.
The "Homebrew", "Ocean" etc. are the setting profiles from the Terminal.app preferences. You can also set up different fonts, encodings, etc.
Of course, you can use it directly (without aliases) like:
myssh Pro user@another.machine.example.com
^ ^
| ssh command arguments
terminal profile name
Best Answer
You can copy in the private key from your Windows system and place it in the .ssh subfolder of your user's home folder on the Mac.
You can then use the private key when logging from the command line - having to enter the passphrase for the key every time (if you have a passphrase on it).
If you want to enter the password only once per boot, then run "ssh-add" to add it to your local agent.
If you want a more GUI oriented application you can use a program such as "SSH Shell" that you'll find in the Mac App Store.