Unix Question: Symbolic link to another server?

MIDIman

Diamond Member
Jan 14, 2000
3,594
0
0
I'm a newbie to Unix. I'm at home over break and need to telnet to a server at work.

We have two big servers at work, and one is SSH. I can't connect to it at all if I'm outside of the network (i.e. at home) - be it ftp or telnet. A co-worker mentioned right before break that to get around this, he made a symbolic link from one server (the non-SSH one, which I CAN telnet / ftp to from home) to the other. Anyone know how to do this? Do I have to be at work to make the link? I know about "ln -s" for folders/files on the same server, but how can you do this across to another server on the network, let alone one that requires SSH?
 

skyking

Lifer
Nov 21, 2001
22,716
5,843
146
as far as I know, you'll need to log into that SSH server anyway.
Why not just do that?
Get to a shell on the one you can get on, and
ssh youruname@123.123.123.123
enter password
get files
 

Need4Speed

Diamond Member
Dec 27, 1999
5,383
0
0
Originally posted by: skyking
as far as I know, you'll need to log into that SSH server anyway.
Why not just do that?
Get to a shell on the one you can get on, and
ssh youruname@123.123.123.123
enter password
get files


i think u meant to say use sftp, which is part of the ssh package. you can't transfer files using thee ssh command between two machines.
 

skyking

Lifer
Nov 21, 2001
22,716
5,843
146
Right, but I always ssh in there to move things around, etc.
not all directories will allow you to sftp from, might have to su to a superuser and move it to /home
 

Haden

Senior member
Nov 21, 2001
578
0
0
i think u meant to say use sftp, which is part of the ssh package. you can't transfer files using thee ssh command between two machines.

Actually you can,
ssh host cat /remote/source > /local/destination

fish, for example, is based on simple commands available at remote host (ls, cat etc.)
 

groovin

Senior member
Jul 24, 2001
857
0
0
cant u just use an ftp client (wsftp, cute??) to ftp into the server, then simply click on the symbolic link to take you over to the next server? wait, nevermind, you might not be able to do that. better thing would be to telnet into the first server, then ssh into the second as mentioned.

also, as far as i know, you can use ssh to file transfer.

question though, why is there no ssh on the exposed server? with ssh, there is no need for telnet (well, unless u have special needs), but if youre just using it to gain shell access, why not set up ssh?
 

Need4Speed

Diamond Member
Dec 27, 1999
5,383
0
0
Originally posted by: Haden
i think u meant to say use sftp, which is part of the ssh package. you can't transfer files using thee ssh command between two machines.

Actually you can,
ssh host cat /remote/source > /local/destination

fish, for example, is based on simple commands available at remote host (ls, cat etc.)


yes, you're right. you could even pipe tar through ssh. I guess I meant that its much easier to use sftp, but I stand corrected.