### Start MobaXterm Documentation Source: https://mobaxterm.mobatek.net/documentation.html Launches the MobaXterm documentation viewer. ```bash MobaXterm.exe -doc ``` -------------------------------- ### Install URL Protocol Handler Source: https://mobaxterm.mobatek.net/documentation.html Use this command to install the URL protocol handler, allowing MobaXterm to execute sessions from HTML pages. ```bash MobaXterm.exe -install-url-protocol ``` -------------------------------- ### Start MobaXterm Configuration Window Source: https://mobaxterm.mobatek.net/documentation.html Launches the MobaXterm configuration window. ```bash MobaXterm.exe -config ``` -------------------------------- ### Start MobaXterm Keyboard Shortcuts Configuration Source: https://mobaxterm.mobatek.net/documentation.html Opens the MobaXterm keyboard shortcuts configuration window. ```bash MobaXterm.exe -shortcuts ``` -------------------------------- ### Start MobaXterm Text Editor Source: https://mobaxterm.mobatek.net/documentation.html Opens the MobaXterm embedded text editor (MobaTextEditor) with a specified file. ```bash MobaXterm.exe -edit "" ``` -------------------------------- ### Start MobaXterm Picture Viewer Source: https://mobaxterm.mobatek.net/documentation.html Launches the embedded MobaXterm picture viewer program. ```bash MobaXterm.exe -picview ``` -------------------------------- ### Start MobaXterm Folders Diff Tool Source: https://mobaxterm.mobatek.net/documentation.html Launches the MobaXterm embedded folders-diff tool to compare two folders. ```bash MobaXterm.exe -compfolders ``` -------------------------------- ### Launch MobaXterm X11 Server in Hidden Mode Source: https://mobaxterm.mobatek.net/documentation.html Starts MobaXterm minimized in the system tray with the X11 server active. ```bash C:\Some\Place\MobaXterm.exe -hideterm ``` -------------------------------- ### Start MobaXterm Diff Tool for Files Source: https://mobaxterm.mobatek.net/documentation.html Launches the MobaXterm embedded diff tool to compare two specified files. ```bash MobaXterm.exe -compfiles "" "" ``` -------------------------------- ### Connect to Remote Server and Edit Files Source: https://mobaxterm.mobatek.net/documentation.html Demonstrates connecting to a remote server via SSH and using 'nedit' for graphical file editing. Ensure 'nedit' is installed on the remote server and DISPLAY environment variable is set correctly. ```bash telnet remoteserver1 export DISPLAY=localcomputer1:0.0 nedit exit ssh -l root remoteserver1 nedit ``` -------------------------------- ### Transfer File using SCP Source: https://mobaxterm.mobatek.net/documentation.html Example of using the scp command to securely copy a local file to a remote server. Ensure you have SSH access to the remote server. ```bash scp /drives/c/Photo36.jpg root@server1:/tmp/ ``` -------------------------------- ### MobaXterm Plugin Structure Source: https://mobaxterm.mobatek.net/documentation.html Create MobaXterm plugins by packaging executables, libraries, and configuration files into a ZIP archive with a specific folder structure (/bin, /lib, /usr, /etc). Rename the archive to .mxt3. ```text Rename plugin extension from ".mxt3" to ".zip" Open the ".zip" file Add files to /bin, /lib, /usr, /etc directories as needed Rename archive back to ".mxt3" ``` -------------------------------- ### Set Up Passwordless SSH Connection Source: https://mobaxterm.mobatek.net/documentation.html Commands to generate a key pair without a passphrase and copy the public key to the server. ```bash ssh-keygen -t rsa -N '' -q -f ~/.ssh/id_rsa ``` ```bash scp .ssh/id_rsa.pub user1@server1:.ssh/authorized_keys ``` -------------------------------- ### Open local files and URLs Source: https://mobaxterm.mobatek.net/documentation.html Opens files, directories, or URLs using the Windows default application associated with the file type. ```bash open https://www.google.com open MyDocuments/MyWork.pdf ``` -------------------------------- ### Launch MobaXterm with Command-Line Switches Source: https://mobaxterm.mobatek.net/documentation.html Execute MobaXterm from a batch script using command-line switches like -hideterm, -exitwhendone, and -exec to automate tasks and remote application launching. ```batch C:\Some\place\MobaXterm.exe -hideterm -exitwhendone -exec "waitforX; ssh MYREMOTESERVER 'xclock' " ``` -------------------------------- ### Browse network shares Source: https://mobaxterm.mobatek.net/documentation.html Accesses remote network resources using the // mount point syntax. ```bash PicView //server1/share1/Photo36.jpg edit //server2/Documents/program.c ``` -------------------------------- ### Unpack MobaXterm Core Files with Admin Privileges Source: https://mobaxterm.mobatek.net/documentation.html Use the '-justunpack' command-line argument with administrator privileges to unpack MobaXterm's core files into the 'AdmSlash' subfolder. This is required when MobaXterm cannot write to the TEMP folder due to group policies. ```bash MobaXterm.exe -justunpack ``` -------------------------------- ### Specify MobaXterm Configuration File Path Source: https://mobaxterm.mobatek.net/documentation.html Use the '-i' command-line argument to specify the path to the MobaXterm.ini configuration file. This is useful for sharing configurations or using custom settings. ```bash C:\Some\place\MobaXterm.exe -i "https://myintranet/MobaXterm.ini" ``` ```bash C:\Some\place\MobaXterm.exe -i "\\MySharedFolder\MobaXterm.ini" ``` ```bash C:\Some\place\MobaXterm.exe -i "D:\Data\MobaXterm.ini" ``` ```bash C:\Some\place\MobaXterm.exe -i "\\MySharedFolder\MobaXterm.ini" ``` -------------------------------- ### Execute native Windows programs Source: https://mobaxterm.mobatek.net/documentation.html Runs standard Windows command-line utilities and applications directly from the MobaXterm terminal. ```bash ipconfig /all netsh -c interface dump regedit net user calc notepad ``` -------------------------------- ### Access local drives Source: https://mobaxterm.mobatek.net/documentation.html Navigates and interacts with local Windows drives mounted under the /drives directory. ```bash cat /drives/c/Windows/win.ini PicView /drives/d/MyPhotos/Photo36.jpg ``` -------------------------------- ### Display Remote Xclock with MobaXterm X Server Source: https://mobaxterm.mobatek.net/documentation.html To display a remote graphical application like 'xclock' on your Windows desktop using MobaXterm's X server, set the DISPLAY environment variable on the remote Unix/Linux machine. ```bash DISPLAY=MY_WINDOWS_HOST_RUNNING_MOBAXTERM:0.0 xclock ``` -------------------------------- ### Copy Public SSH Key to Server Source: https://mobaxterm.mobatek.net/documentation.html Transfers the generated public key to the remote server's authorized_keys file. ```bash scp .ssh/id_rsa.pub user1@server1:.ssh/authorized_keys ``` -------------------------------- ### Configure RSH Host Equivalence Source: https://mobaxterm.mobatek.net/documentation.html Syntax for defining authorized users in the /etc/hosts.equiv file. ```text ``` -------------------------------- ### Configure Selection Delimiters in MobaXterm Source: https://mobaxterm.mobatek.net/documentation.html Customize characters that MobaXterm treats as non-delimiters for double-click text selection by editing the MobaXterm.ini file. ```ini [Misc] LeftDelimChars=/~+-.&?$% RightDelimChars=/~+-.&?% ``` -------------------------------- ### Disable X Server Instance Source: https://mobaxterm.mobatek.net/documentation.html Disables the X server for the current MobaXterm instance. ```bash MobaXterm.exe -noX ``` -------------------------------- ### Generate SSH Key Source: https://mobaxterm.mobatek.net/documentation.html Use this command to generate a new RSA or DSA private key for passwordless SSH login. Alternatively, use the MobaKeyGen application. ```bash ssh-keygen -t rsa ``` ```bash ssh-keygen -t dsa ``` -------------------------------- ### Convert between DOS and Unix paths Source: https://mobaxterm.mobatek.net/documentation.html Uses the cygpath command to translate between Unix and Windows path formats or list system directory paths. ```bash echo "/bin PATH = $(cygpath -w /bin)" echo "System PATH = $(cygpath -u -S)" ``` -------------------------------- ### Force Indirect OpenGL Rendering Source: https://mobaxterm.mobatek.net/documentation.html Configures remote servers to use indirect rendering for OpenGL applications. ```bash export LIBGL_ALWAYS_INDIRECT=1 ``` -------------------------------- ### Enable MobaXterm Compact Mode Source: https://mobaxterm.mobatek.net/documentation.html Activate 'Compact mode' to minimize the MobaXterm interface and maximize the terminal or remote desktop area on smaller screens. Access menus via the button at the right of the tabs bar. ```text View --> Compact mode ``` -------------------------------- ### Change Group Ownership of SSH Key Files Source: https://mobaxterm.mobatek.net/documentation.html Correct the 'WARNING: UNPROTECTED PRIVATE KEY FILE!' error by changing the group ownership of SSH key files to 'UsersGrp'. This ensures proper permissions for key usage. ```bash chgrp UsersGrp * ``` -------------------------------- ### Read Windows registry keys Source: https://mobaxterm.mobatek.net/documentation.html Accesses Windows registry keys and values as virtual files using standard cat commands. ```bash cat /registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DevicePath cat "/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders/CommonPictures" ``` -------------------------------- ### Set DPI for Interface Scaling Source: https://mobaxterm.mobatek.net/documentation.html Scales the MobaXterm interface by setting the DPI value. Common values include 120 (x1.25), 144 (x1.50), or 192 (x2.00). ```bash MobaXterm.exe -dpi 120 ``` -------------------------------- ### Enable Windows PATH in MobaXterm Terminal Source: https://mobaxterm.mobatek.net/documentation.html To ensure Windows applications are accessible within MobaXterm, enable the option to append the Windows PATH environment variable in the Terminal configuration. ```text Settings --> configuration --> Terminal --> Append Windows PATH environment variable to MobaXterm ``` -------------------------------- ### Append Public SSH Key to Existing Authorized Keys Source: https://mobaxterm.mobatek.net/documentation.html Appends a public key to an existing authorized_keys file on a remote server. ```bash cat .ssh/id_rsa.pub user1@server1:/tmp/tmpkey && ssh user1@server1 "cat /tmp/tmpkey >> ~/.ssh/authorized_keys && rm /tmp/tmpkey" ``` -------------------------------- ### Adjust MobaXterm Interface Font Size with DPI Source: https://mobaxterm.mobatek.net/documentation.html Utilize the '-dpi' command-line argument to control the scaling factor for MobaXterm's graphical interface. Values range from 96 (normal) to 240 (very large fonts). ```bash C:\Some\place\MobaXterm.exe -dpi 240 ``` -------------------------------- ### Restart SSH Server Source: https://mobaxterm.mobatek.net/documentation.html Restart your SSH server after modifying the sshd_config file to apply changes. Ensure 'PasswordAuthentication' is set to 'yes' or commented out for password-based authentication. ```bash /etc/init.d/sshd restart ``` -------------------------------- ### Generate SSH RSA Key Pair Source: https://mobaxterm.mobatek.net/documentation.html Creates a new RSA key pair for SSH authentication. ```bash ssh-keygen -t rsa -N '' -q -f ~/.ssh/id_rsa ``` -------------------------------- ### Understanding Remote DISPLAY Variable with X11-Forwarding Source: https://mobaxterm.mobatek.net/documentation.html When X11-Forwarding is enabled via SSH, the remote server's DISPLAY variable is typically set to 'localhost:10.0'. This indicates that SSH is managing a local virtual display that is automatically forwarded through the SSH connection to MobaXterm. ```bash DISPLAY=localhost:10.0 ``` -------------------------------- ### Configure MobaXterm Charset to UTF-8 Source: https://mobaxterm.mobatek.net/documentation.html To resolve issues with special characters or country charsets, configure MobaXterm to use UTF-8 encoding in the Terminal settings. ```text Settings --> configuration --> Terminal --> Charset: UTF-8 (unicode) ``` -------------------------------- ### Remove SSH Known Hosts File Source: https://mobaxterm.mobatek.net/documentation.html Reset the SSH host identification alarm by deleting the '~/.ssh/known_hosts' file. This is useful after server re-installation or if you suspect a man-in-the-middle attack. ```bash rm ~/.ssh/known_hosts ``` -------------------------------- ### Enable Right-Click Paste in MobaXterm Terminal Source: https://mobaxterm.mobatek.net/documentation.html Configure MobaXterm to use the right-click button for pasting text in the terminal. This setting can also be applied per-session. ```text Settings --> configuration --> Terminal --> Paste using right click ``` ```text Session settings --> Terminal settings --> Paste using right-click ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.