Article directory
1. Introduction to MobaXterm
Based on powerful X server and ssh client, MobaXterm becomes the ultimate toolbox for remote computing. In a single Windows application, it offers a large number of functions tailored for programmers, webmasters, IT administrators and all users who need to handle remote jobs in an easier way.
Many important remote network tools required by Windows desktops, such as SSH, X11, RDP, VNC, FTP, MOSH, etc., can be used out of the box in MobaXterm, providing the ultimate experience for the integrated operation of remote tasks. When using SSH connection When reaching the remote server, a graphical SFTP browser will automatically pop up to edit your remote files directly. Remote applications will also be displayed seamlessly on the Windows desktop using the embedded X server.
Full term software - MobaXterm
The advantages of this artifact include:
- The function is very powerful, supporting SSH, FTP, serial port, TFTP, Xserver...
- Support tags, switching is also very convenient
- Many shortcut keys, easy to operate
- There are a wealth of plug-ins that can further enhance the functionality
- ...
For more details, you can click to enter the official website of MobaXterm to continue exploring.
2. MobaXterm installation
MobaXterm is not only powerful, but more commendable is that it provides a free version, which is green and free of installation. Just click the official link below to download and decompress it to use.
Click to download (green free installation version )
3. Use of MobaXterm
3.1 Use SSH to connect to Ubuntu
Generally speaking, if you can easily operate Ubuntu in a local virtual machine, you don't need to use SSH for remote connection, but for the following reasons, it is very common to use SSH for remote connection:
- The system Ubuntu is not installed on a local computer, such as a company's public compilation host.
- The enhanced package of the virtual machine, vmware tools, was damaged and could not be installed correctly, causing the virtual machine to fail to use shared folders normally.
- The enhanced package vmware tools of the virtual machine is damaged and cannot be installed correctly, resulting in the inability to use the clipboard normally.
All the above problems can be easily solved through MobaXterm. The specific steps are:
click on the menu bar "sessions" --> "new session" in turn, and the "session setting" dialog box will pop up. We click the first SSH icon and fill in the relevant information to complete the session creation, as shown in the following figure:
MobaXterm creates SSH session
Note :
For the case of using the virtual machine VMware + Ubuntu system, after using MobaXterm to connect to the virtual machine, it will automatically connect to the virtual machine through FTP, and you can directly drag and drop to copy files. Thereby avoiding the following difficult problems:
- Ubuntu cannot install Chinese input method
- The virtual machine cannot provide the shared folder function
- The virtual machine cannot provide cross-host copy and paste functions
MobaXterm drag and drop files
3.2 Using the serial port to connect to the development board
Select serial in the "session setting" dialog box, then select the serial port number and baud rate, and click OK to complete the connection.
MobaXterm creates a serial port session
3.3 Data transmission through the serial port
In MobaXterm, data can be transmitted at high speed (up to 2MB/s) through the serial port based on the Z-modem protocol, and the file can be sent and received by using the following two commands:
- Send files from computer to development board:
- Enter the command rz in the terminal
- Press and hold ctrl + right mouse button, click "Send file using Z-modem", select the file to be sent to the development board
Send files to the development board through rz in the serial port
- Send the file (eg a.txt) from the development board to the computer:
- Enter the command sz a.txt in the terminal
- Press and hold ctrl + right mouse button, click "Receive file using Z-modem", select the storage path.
Send files to the development board through sz in the serial port
Note that
some development boards do not have rz and sz commands, you need to install these two commands:
- For the GEC6818 development board, you can download the compiled command rzsz.rar , put it into the development board and eat it.
- For other development boards, you can download the command source code rzsz-3.48.tar.gz and cross-compile it into the development board for use.
3.4 Data transfer via tftp
If the development board itself has a network connection, it is generally more sensible and convenient to use tftp to transfer data. MobaXterm has its own tftp server, which can be started directly and set the main transmission directory. The development board can transfer files at high speed by using the tftp client command.
Computer side: Start tftp service
Click "Servers" in the menu bar to pop up the service setting dialog box. Click the first TFTP setting icon, and fill in the relevant information, as shown in the figure below:
Set up and start the TFTP service
Development board side: use tftp service
On the development board side, use the following command to transfer data:
# 从电脑的TFTP主目录传送文件(比如a.txt)到开发板
[root@GEC6818 ~]# tftp 192.168.1.20 -gr a.txt
# 将开发板的文件(比如b.txt)发送到电脑的TFTP主目录
[root@GEC6818 ~]# tftp 192.168.1.20 -pr b.txt
3.5 Right click to paste
In Moba and many terminal tools, there is such a function: select and copy files with the left mouse button, and paste text with the right mouse button. But the right-click paste function in Moba is not enabled by default, we can manually enable it.
Click "settings" --> "Configuration" in the menu bar, select "terminal" in the pop-up dialog box, and then tick "paste using right-click".
MobaXterm set right click to paste
MobaXterm's XServer view service
You can even start qtCreator on the remote host directly:
MobaXterm directly starts the qtcreator of the remote host