This is what I have in my . tmux.conf for SSH you can adapt
bind-key S command-prompt -p "ssh to:","port:" "new-window -n %1 'ssh %1 -p %2'"
That means when I press C-b, SHIFT S
it asks what IP to connect to (type it in when it asks on the status bar of TMUX), press enter, the it asks the port to use.