by admin

How To Transfer File Using Putty Serial

How To Transfer File Using Putty Serial 3,6/5 6082 reviews
Active4 years, 11 months ago

I have 2 linux computers, and a serial line between them, one of them is only accessible through a serial line that has shell on it. How can I transfer files between the 2 computers?

Fake voice 7 serial key free

Serial

I've heard that it can be done with some rz/sz magic..

  • Jun 13, 2014  Please, I apologize if my question is a simple one, but I can´t resolve it. I wanted to communicate two PCs using the serial Rs-232 port and a null-modem cable. After connected them, I could chat using Putty from both machines, but now I want to send files from one PC to another. I can´t find the way using Putty.
  • A serial line provides no well defined means for one end of the connection to notify the other that the connection is finished. Therefore, PuTTY in serial mode will remain connected until you close the window using the close button. 3.8 The PuTTY command line.

Another alternative to using flow control is to implement one of the fairly ancient protocols like XMODEM which are fairly simple and don't consume a lot of code space, if you have a little over 1k of RAM available then I've used this code and it works. ExtraPuTTY is a fork of PuTTY that adds XMODEM and a few other file transfer protocols.

Can I do the same trick with a pseudo-terminal instead of other computer?

Kenster
5,2542 gold badges20 silver badges35 bronze badges
DimaKDimaK

migrated from stackoverflow.comMay 3 '11 at 12:18

This question came from our site for professional and enthusiast programmers.

3 Answers

You need a terminal application like minicom. Then you connect the two computers, start minicom on one side, connect to the other side (the one where you can login) and use the sz command to send the file. Minicom will automatically detect the file transfer. Note that you might need to install the sz command on the login machine, how that is done is dependent on your distribution.

DarkDustDarkDust

Copying txwikinger's answer, I would use kermit, the grandfather of file transfer programs. We used it in the 80's, long before there was Linux. Wikipedia suggests it may be better than zmodem (sz).

An alternative approach is to use SLIP or PPP, as suggested by Axel. But this howto for PPP is about 15 years old.

Community
Joseph Quinsey

How To Transfer File Using Putty Serial Killer

Joseph Quinsey
4871 gold badge7 silver badges23 bronze badges

You could make use of the 'Serial Line Internet Protocol' as described here.

Once two systems are interconnected by a slip line, you can use any IP-based tool (ftp, rcp, scp, ssh, ..) to exchange files. It probably takes too long to configure for a once-only purpose but might be worth looking at for embedded systems with RS232 port or old systems from a pre-LAN aera.

Axel KemperAxel Kemper

Putty Copy Files To Server

2,7571 gold badge16 silver badges21 bronze badges

Not the answer you're looking for? Browse other questions tagged linuxfile-transferserial-port or ask your own question.