这是一篇备忘录,将来重新设置的时候按照这个来,因为有可能一段时间不用的话就忘记了。

办公室的环境:

ubuntu

主机:lupus.ari.uni-heidelberg.de

id:sgao

外部访问主机:welcome.ari.uni-heidelberg.de

id:shuangg

以上两个的密码不同。

外部访问时需先连接外部主机,然后ssh到lupus

本地环境:

windows

winscp

putty

设置:

  1. 安装winscp;下载放好putty。
  2. winscp中新建一个连接,填写hostname为lupus.ari.uni-heidelberg.de,用户名sgao,填好密码,类型选scp。连接下的Tunnel选项下填好外部主机名和登录信息,保存。
  3. 直接运行即可连接,呈现ftp类似界面。
  4. putty中填写hostname为welcome.ari.uni-heidelberg.de,端口默认22,连接方式选ssh,连接下的data项中填好自动用户名,ssh项中填写远程命令ssh sgao@lupus.ari.uni-heidelberg.de,保存即可。
  5. 用putty访问时,连接后首先提示输入外部主机的密码,然后输入lupus的密码,然后返回提示符,默认shell为bash。
  6. winscp用于存取文件操作,putty用于命令行运行程序,IDL等。
Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>