I need to copy a file from a computer I can only access via SSHing into an intermediate computer.
Home -> server.com -> cluster.com
I'm trying to copy from cluster.com to home. I can ssh from home but not to home. The connection
server.com-> cluster.com
has an RSA public key but server will not allow
Home -> server RSA public key.
I've tried
home$ ssh server.com -L 2000:final:22 -N
which gave
channel 2: open failed: administratively prohibited: open failed
I've also tried
ssh -fN -L 4567:cluster.com:22 server.com
then
ssh cluster.com -L 2000:final:22 -N
which resulted in.
channel 2: open failed: administratively prohibited: open failed
ssh_exchange_identification: Connection closed by remote host
I got these ideas from scp files via intermediate host and Must I sftp to an intermediate server?
but can't seem to get the results to work, some of the other examples in the first link I can't follow so have only tried the ones I can. I never seem to be able to get ssh to do what I want.
Any help would be appreciated.