top | item 10593972

(no title)

k8tte | 10 years ago

or just use scp, which is part of openssh

discuss

order

buserror|10 years ago

Try that thru a double connection? ie, ssh-ing to a machine from an already open ssh session?

I'm amazed I get -1 for that post; scp is clunky as hell when you already have a shell in 'that' directory; and it'll only work if you have /direct/ access to the machine you are logged in, and that's rarely the case if you first connect to a front end machine.

I'm an embedded dev as well, and I use zmodem everyday. I have boards that have no network, just a serial port, and I can upload an executable, download the log from just the debug console.

jacquesm|10 years ago

It's interesting how tcp/ip is pretty much taken for granted. Of course you could run SLIP over that serial port ;)

Just the other day I was bitching about how it is easier to drive a printer than a relay from a present day computer, the answer I got back was 'can't you use an arduino?'...

throwaway7767|10 years ago

> I'm amazed I get -1 for that post; scp is clunky as hell when you already have a shell in 'that' directory; and it'll only work if you have /direct/ access to the machine you are logged in, and that's rarely the case if you first connect to a front end machine.

I did not downvote you, but setting up a port forward (-L) or SOCKS proxy (-D) on the first machine is very easy and extremely flexible. I do it all the time.

You can also do some tricks in ssh_config to route through the first machine (this is non-obvious, I'll grant). I do "ssh <secondmachine.whatever.tld>.<hopmachine>", and then I transparently connect from my workstation to the secondmachine, through the hopmachine. This is also more secure as the hop machine is just a dumb transport for data.

> I'm an embedded dev as well, and I use zmodem everyday. I have boards that have no network, just a serial port, and I can upload an executable, download the log from just the debug console.

Absolutely, zmodem is still very useful for serial links, and they are very common in embedded devices.

I really doubt there's any reason to use zmodem over SSH other than convenience if you happen to know it better than the alternatives.

laumars|10 years ago

If you have SSH keys set up then:

    cat file.bin | ssh -A host1 ssh host2 "cat > file.bin"
Then there's other tricks you could do like port forwarding, filesystem mounting over SSH (sshfs) etc. But if zmodem works for you then it's as good a solution as any of the above. I only give SSH examples as demonstration at just how scarily powerful a tool it can be.

jacquesm|10 years ago

zmodem is 'in band', scp is out-of-band, you may not even have direct access to the machine you wish to transfer from.