1

I have a remote machine running Ubuntu that has an on-board USB serial converter. I can easily access remote's terminal by connecting via USB to Windows and running PuTTY. However, is it possible to get to remote's terminal this way using the RPi 4 terminal? Essentially, I'd like to replace the Windows machine and PuTTY with the RPi 4.

When I connect remote's console port to RPi 4, it is immediately recognized and attached to /dev/ttyUSB0

$ dmesg
$ ...
$ usb 1-1.1: new full-speed USB device number 4 using xhci_hcd
$ usb 1-1.1: New USB device found, idVendor=0403, idProduct=6015, bcdDevice=10.00
$ usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
$ usb 1-1.1: Product: FT231X USB UART
$ usb 1-1.1: Manufacturer: FTDI
$ usb 1-1.1: SerialNumber: D200BOAV
$ ftdi_sio 1-1.1:1.0: FTDI USB Serial Device converter detected
$ usb 1-1.1: Detected FT-X
$ usb 1-1.1: FTDI USB Serial Device converter now attached to ttyUSB0

From the RPi 4 terminal, how can I access remote's terminal?

2

1 Answer 1

-1

Run a SSH server on the Ubuntu machine.

Then use SSH on the Pi to open a terminal on the Ubuntu machine.

7
  • I am specifically trying to connect via USB serial port. Is SSH capable of this?
    – earl
    Oct 24, 2022 at 20:07
  • Sorry, I misunderstood your question. What's stopping you from using minicom or screen?
    – joan
    Oct 24, 2022 at 20:14
  • I would like to automate filesharing between multiple machines. It is simple with SSH and using an ethernet connection between the two. I use crontab to periodically rsync between the machines. However, since the RPi only has one ethernet port and multiple USB ports, I thought it may be possible to do this through USB serial.
    – earl
    Oct 24, 2022 at 20:19
  • minicom and screen are Linux commands which do pretty much the same as putty. Perhaps you need to clarify your question.
    – joan
    Oct 24, 2022 at 20:31
  • Can minicom or screen be used without their window interface? For example, I'd like to echo "Hello" on a remote machine. Can this be done without opening minicom? Similar to $ ssh root@remote echo Hello
    – earl
    Oct 24, 2022 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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