My computer network is closed to ssh to external machines (outside the network) through port 22. I have a round about by tunneling ssh through http by employing cockscrew. I modified my config file in the following fashion
Host EXTERNAL-HOSTNAME
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p
ServerAliveCountMax=30
ServerAliveInterval=5
ProxyCommand corkscrew LOCAL-PROXYNAME PROXY-PORT-NO %h %p
How can I now use tramp to access the files in the remote cluster? The regular command /ssh:username@EXTERNAL-HOSTNAME
fails to open the file.
UPDATE 1:
My proxy does not use the default 8080 port but a different port number. So using
/tunnel:PROXY-HOSTNAME PROXY-PORT-NO | ssh:USERNAME@EXTERNAL-HOSTNAME:~/
gave me the following error
Tramp: Opening connection for tunnel using scp... Tramp: Sending command
exec ssh -o ControlPath=/var/folders/k5/r4f1q8j90y345rsz_9skc7y48q0jr6/T/tramp.15685eSq.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none tunnel' Tramp: Waiting for prompts from remote shell... Tramp failed to connect. If this happens repeatedly, try
M-x tramp-cleanup-this-connection' Tramp: Waiting for prompts from remote shell...failed Tramp: Opening connection for tunnel using scp...failed Use M-x make-directory RET RET to create the directory and its parentsTramp: Checking `vc-registered' for /tunnel:PROXY-HOSTNAME PROXY-PORT-NO | ssh:USERNAME@EXTERNAL-HOSTNAME:~/...failed Use M-x make-directory RET RET to create the directory and its parents Mark set
UPDATE 2:
It worked. The only problem was I was not entering the port-no correctly. Now I just used
/tunnel:PROXY-HOSTNAME#PROXY-PORT-NO|ssh:USERNAME@EXTERNAL-HOSTNAME:~/
and it worked.