MobaXterm嵌套服务器场景下SFTP目录显示问题咨询
Absolutely, this is totally feasible! There are two reliable ways to get the left-side SFTP panel to display the directory of your second nested server in MobaXterm, depending on your preferred workflow:
Method 1: Set Up a Direct SSH Session with Proxy Jump (Recommended)
This method lets you connect directly to the second server through the first one in a single session, so the SFTP panel automatically loads the second server's directory right away:
- Open MobaXterm, click Session > SSH from the top menu.
- In the "Remote host" field, enter the IP/domain of your second server, and fill in the second server's username in "Specify username".
- Click Advanced SSH settings at the bottom of the window.
- In the "Proxy settings" section, select Proxy SSH, then enter the first server's IP/domain, username, and port (default is 22) in the corresponding fields. If you use a private key for either server, make sure to check "Use private key" and select the key file.
- Save this session and connect. The left SFTP panel will immediately show the second server's user directory, no extra steps needed.
Method 2: Switch SFTP Session Manually After Nested Login
If you already logged into the first server and then SSH into the second one from its terminal, you can switch the SFTP panel to the second server like this:
- After logging into the first server, use the command
ssh your-second-username@your-second-server-ipin the terminal to connect to the second server. - MobaXterm will automatically create a new tab for this second SSH session (look at the top tab bar to find it).
- Click on this new tab for the second server. The left SFTP panel should automatically switch to display the current directory of the second server. If it doesn't, right-click the SFTP panel and select Refresh, or double-check that the "Automatically start SFTP browser when opening SSH session" option is enabled (you can find this in Settings > Configuration > SSH).
Quick Note
Make sure MobaXterm's SFTP browser feature is enabled globally: go to Settings > Configuration > SSH, and ensure the box next to "Automatically start SFTP browser when opening SSH session" is checked. This helps MobaXterm detect new SSH connections and link them to the SFTP panel correctly.
内容的提问来源于stack exchange,提问作者PAPAS




