Click on the Windows 'Start' menu, and then click on the 'PuTTY' program group to open. Click on the 'PuTTY' icon to launch the program. Click on the 'Serial' radio button to set the connection type. Type the COM address for the serial port in the 'Serial Line' box to select the COM port the serial device is attached to. You can configure the system to allow logins from a terminal over a serial port by seting up a getty(1) session on the serial port - getty is the tool for setting up a terminal and allowing logins onto it. Put an entry in your inittab(5) file to run it on the appropriate serial port on a respawn basis.
Active5 years 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?
I've heard that it can be done with some rz/sz magic...
Can I do the same trick with a pseudo-terminal instead of other computer?
Kenster5,30422 gold badges2020 silver badges3535 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 QuinseyJoseph Quinsey48711 gold badge77 silver badges2323 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 Kemper2,76711 gold badge1616 silver badges2121 bronze badges