Game Trading Zone
                  A Community of Traders
    Sign On     Create Account    
  Home     Search     Users     Trades     Forums     Reviews     Chat [11] general ==> BarbNecroPaladin, BluePhoenix, BoB, GuyMonkey, Kuros, Neko, PiemJi, Roger, SANGRE, thepoomz, vikitty     Rules     Help  
    My Account         My Items         My Trades         My Offers    
    My Listing         My Filters         My Ratings         My Matches    
Messages
Items:
User:
next page   latest   search   hot topics   user forums   item forums   post
AuthorMessage
Yaverot
Aoi Aoi toki ga toke dasheta. GameTZ Subscriber Silver Good Trader
Global Trader (5)

#1 posted April 9, 2008 at 10:59am (EST)  

 

I have a couple files on one system I'd like to copy to another. The files are too big for a floppy, the system with the files doesn't have a burner or any usb ports.
I don't have a shared drive anywhere on my network.
Recently, the handful of files had been plain text, so I could open the file in a text editor window on both systems and copy&paste. Or was small and unimportant enough that email was easier.

Now that I have a 'large' 300MB binary blob, I want to know the right way to do this. (So I don't have to work around the problem next time it comes up.)
I can SSH into the system that has the file, and I just want to drop it into my home directory on my main system (that I SSH from).
I have the same username on both systems.

I figured scp from SSH would work, but their directions are opaque and these other directions don't appear to work, because it appears to be trying to open another connection between the machines (from the sever to the client) instead of using the existing connection (from the client to the server).

The client machine I want the file on is "weird", and the machine I want to take the file from is "navi" (yes, my current naming convention is Lain themed).

I am physically at "weird", and from it I can remote login to "navi" via SSH. SHH was started from my home folder on weird, and I've navigated to where the file I want is on navi. So the "obvious" scp commands to try are:
$scp grabme.zip grabme.zip
cp: `grabme.zip' and `grabme.zip' are the same file
$scp grabme.zip weird:grabme.zip
ssh: connect to host weird port 22: Connection refused
lost connection
$

So any ideas?


-
Oh yeah? Well when I was your age Pluto was still a planet.
ndrake
GameTZ Subscriber Gold Good Trader
Global Trader (3) Has Written 3 Reviews

#2 posted April 9, 2008 at 8:58pm (EST)
edited April 9, 2008 at 8:59pm (EST)  

try this on weird:

scp navi:/path/to/the/file .

The . will cause the file to be put in the current directory on wierd.




ndrake
GameTZ Subscriber Gold Good Trader
Global Trader (3) Has Written 3 Reviews

#3 posted April 10, 2008 at 9:09am (EST)  

Any luck?

If you are wanting to copy the same set of files often, I'd highly recommend looking into rsync. It lets you copy files between system, but it will only send things that have changed, saving network bandwidth. Rsync rocks the house.
Yaverot
Aoi Aoi toki ga toke dasheta. GameTZ Subscriber Silver Good Trader
Global Trader (5)

#4 posted April 15, 2008 at 9:32pm (EST)  

That worked. (Finally got around to coming back to see if I got an answer.) If has been a different random file about every month, and it has normally been small text files the other way (from weird to navi)

It seams really stupid to me that I have to log out of my ssh connection to copy a file from where I just was, and go through the hassle of remembering the path&file name, too. I know "weird"'s file structure, "navi" is different, so obviously I want to login and "cd" around until I find the file then run the correct copy from there where I'm already looking at the file.

-
Oh yeah? Well when I was your age Pluto was still a planet.
ndrake
GameTZ Subscriber Gold Good Trader
Global Trader (3) Has Written 3 Reviews

#5 posted April 15, 2008 at 11:02pm (EST)  

Why not open a second terminal on weird. One to find the files, one to run the scp command.

nihon
GameTZ Gold Subscriber 300 Trade Quintuple Gold Good Trader
Gold Global Trader (15) Has Written 10 Reviews

#6 posted April 16, 2008 at 12:18am (EST)  

Yeah, this isn't Windoze.  * winking raspberry *

 
--
-- Apple/Mac Forum
-- Utah Speculative Fiction Council
ndrake
GameTZ Subscriber Gold Good Trader
Global Trader (3) Has Written 3 Reviews

#7 posted April 16, 2008 at 6:44am (EST)  

You could also push the file from navi to weird. Just do scp /path/to/file weird:/path/where/you/want/the/file when logged in to navi.
Yaverot
Aoi Aoi toki ga toke dasheta. GameTZ Subscriber Silver Good Trader
Global Trader (5)

#8 posted April 17, 2008 at 9:50pm (EST)  

Post 7 doesn't work, I'd have to set up weird to allow remote logins. (Which is the second example in post 1) I think it should just use the existing connection weird -> navi that I entered the command on, but it tries to create a new connection and login from navi to weird.

nihon: true, with Windows or OS X, I'd just do a drap&drop and be done (turning on filesharing for upto 10 minutes is trivial now). No wondering why the 'remote copy'/transfer command doesn't work to copy from here (the nested command prompt I'm on) to HERE (the system with the keyboard I'm using), which //I// would (and did) assume to be the most common use. No worrying about what the file paths are at all either. If I wasn't already (remotely) logged in, the remote copy command of SSH wouldn't have been the first thing to come to mind, other un-setup'd tools (like ftp) would. Then I'd say "forget it" and find a way to regenerate the data locally on the machine I want it on.

Post 5: I'll try to remember that in the future, is there a command that gives me a full path to the directory I'm in, so I don't need to repeatedly "cd .." and build the path in reverse?

And maybe the command that does what I wanted/assumed does exist, but it isn't talked about enough. Maybe it is not "Secure (replacement for Remote) CoPy" but "Tunnel CoPy?" or something like that.
-
Oh yeah? Well when I was your age Pluto was still a planet.
ndrake
GameTZ Subscriber Gold Good Trader
Global Trader (3) Has Written 3 Reviews

#9 posted April 18, 2008 at 6:49am (EST)  

Yaverot wrote:
> Post 7 doesn't work, I'd have to set up weird to allow remote logins.
> (Which is the second example in post 1) I think it should just use
> the existing connection weird -> navi that I entered the command on,
> but it tries to create a new connection and login from navi to weird.
>

Why not just turn on SSH on weird?


> Post 5: I'll try to remember that in the future, is there a command
> that gives me a full path to the directory I'm in, so I don't need
> to repeatedly "cd .." and build the path in reverse?
>

pwd

Yaverot
Aoi Aoi toki ga toke dasheta. GameTZ Subscriber Silver Good Trader
Global Trader (5)

#10 posted April 19, 2008 at 11:30pm (EST)  

>$ pwd
New post-it note on monitor. Thanks.

>SSH on weird?
I've already put the settings in such a way that remote login is disabled even if I kick off sshd from the command line. After all I'm not going to need to remote login to it for another 2-3 years, and then it'll be worthwhile to delete the config file and take the standard install and recustomize. Its actually much more likely that weird will be dead (processor or motherboard), and the drive will become a slave when I build infornography to replace it.

-
If at first you don't succeed, throw more money at the problem.


Topic Page Hits: 1 today (2 in the last 30 days)

This topic is closed

next page   latest   search   hot topics   user forums   item forums   post


Copyright © 1996-2009 Kenyon Hill LLC. All rights reserved.
Contact - Advertise on this site - Merchandise - Take our Poll - Privacy Statement - Subscribe - SiteMap - RSS RSS Feed - Twitter GameTZ Twitter - Facebook GameTZ Facebook