Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 2103  / 2 Years ago, tue, april 26, 2022, 4:00:06

I can access a server A with SSH, and from there I can access server B, but I can't access B directly.



Is it possible to open a Nautilus folder in server B by clicking in PlacesConnect to Server?


More From » nautilus

 Answers
7

Yes that is possible.
I have the following setup which works, but there might be easier ones.



In the file ~/.ssh/config, add the following lines:



ControlMaster auto
ControlPath /home/yourusername/.ssh/tmp/%h_%p_%r
Host A
HostName hostname.of.server.a

Host B
ProxyCommand ssh -e none A netcat -w 5 hostname.of.server.b 22


You have to replace yourusername, hostname.of.sever.a and hostname.of.server.b
After that, you can (in Nautilus) go to Places->Connect to Server (its actually File->Connect to Server on my machine). And then enter B.
That should be all to see the server B.


[#40535] Tuesday, April 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lasagnerhead

Total Points: 487
Total Questions: 105
Total Answers: 122

Location: French Southern and Antarctic Lands
Member since Sun, May 3, 2020
4 Years ago
;