我的实验室在服务器上运行RStudio.几个星期前,从我堂兄的家里,我成功地进入服务器并通过我当地的Firefox浏览器拉出服务器端的RStudio.现在当我尝试从家里(通过我自己的路由器)访问服务器RStudio时,它不起作用.我需要帮助排除故障,我猜它是路由器上的一些问题.我正在运行Mac OSX 10.6.8.不知道大学服务器在运行什么,但我认为这不是服务器端问题.
这是我第一次这样做时的表现,在我堂兄的家里:首先,我进入大学网络; 然后我用端口转发呼叫SSH; 然后我打开一个Firefox浏览器,连接到我的localhost端口,它在服务器端打开了RStudio,我可以通过本地浏览器窗口访问它.
这是我尝试从家庭网络登录时遇到的问题:
我可以成功建立VPN连接.我也可以使用此命令成功设置SSH:
ssh -v -L 8783:localhost:8783 myacct@server.com
以下是成功的ssh命令的详细输出的最后几行:
debug1: Authentication succeeded (password).
debug1: Local connections to LOCALHOST:8783 forwarded to remote address localhost:8783
debug1: Local forwarding listening on 127.0.0.1 port 8783.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on ::1 port 8783.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Entering interactive session.
Last login: Mon Sep 2 04:02:40 2013 from vpnipaddress
Run Code Online (Sandbox Code Playgroud)
所以我认为我仍然在VPN和SSH阶段取得成功(尽管我不知道为什么它说我上次登录时是9月2日,此后我已经登录了几次).
接下来,我打开Firefox,然后键入localhost:8783,而不是通过浏览器窗口获取RStudio服务器应用程序,我收到以下错误:
在Firefox浏览器窗口中,它显示:找不到服务器,Firefox无法在www.localhost.com找到服务器,检查地址是否有输入错误等.
在终端窗口中,它显示:
debug1: Connection …Run Code Online (Sandbox Code Playgroud)