LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2168|回复: 8

远程登录问题!

[复制链接]
发表于 2008-1-8 15:27:37 | 显示全部楼层 |阅读模式
现在由于计算需要远程登录实验室一台装有Arch——Linux的操作系统,但是有一个问题,就是终端的电脑关机以后,或是推出一以后,在实验室的机器也停止了计算,rw,有什么比较好的解决方案。
 楼主| 发表于 2008-1-8 15:32:11 | 显示全部楼层
我使用Xmanager的Xstart登录机器,登录失败。

连接显示如下
[15:26:35] Connecting to '202.120.**.**'...
[15:26:36] Connected.
[15:26:36] Version exchange initiated...
[15:26:36]         server: SSH-2.0-OpenSSH_4.7
[15:26:37]         client: SSH-2.0-libssh_1.3.5.1 2653 NetSarang Computer, Inc.
[15:26:37]         SSH2 is selected.
[15:26:37] Algorithm negotiation initiated...
[15:26:37]         key exchange: diffie-hellman-group1-sha1
[15:26:37]         host key: ssh-dss
[15:26:37]         outgoing encryption: aes128-cbc
[15:26:38]         incoming encryption: aes128-cbc
[15:26:38]         outgoing mac: hmac-sha1
[15:26:38]         incoming mac: hmac-sha1
[15:26:38]         outgoing compression: none
[15:26:39]         incoming compression: none
[15:26:41] Host authentication initiated...
[15:26:42]         Hostkey fingerprint:
[15:26:42]         ssh-dsa 1024 d2:29:bb:b7:8f:d4:d3:7d:75:a5:fe:46:f5:cd:dc:49
[15:26:42]         Accepted. Verifying host key...
[15:26:42]         Verified.
[15:26:42] User authentication initiated...
[15:26:42]         Sent user name '****'.
[15:26:47]         Sent password.
[15:26:47]         Access granted.
[15:26:47] Sent X11 forwarding request...
[15:26:47]         Failed.
[15:27:01] Connection closed.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 16:09:13 | 显示全部楼层
先发现问题Xmanager Xstart不能使用的原因可能是
X11 forwarding 没有打开。

提示

  1. The x11 forwarding request is rejected.

  2. To solve this problem,please turn on the X11 forwarding feature of the remote SSH server.
复制代码


我重新配置一下Arch Linux修改了
# vi /etc/ssh/sshd_config
#X11Forwarding no 改成 X11Forwarding yes  保存退出。
在Xmanager中重新点击 Xstart 然后点击 run . 问题还是存在。

然后


  1. # sh /etc/ssh/sshd_config
复制代码


提示
  1. /etc/ssh/sshd_config: line 15: ListenAddress: command not found
  2. /etc/ssh/sshd_config: line 21: Protocol: command not found
  3. /etc/ssh/sshd_config: line 60: PasswordAuthentication: command not found
  4. /etc/ssh/sshd_config: line 64: ChallengeResponseAuthentication: command not found
  5. /etc/ssh/sshd_config: line 85: UsePAM: command not found
  6. /etc/ssh/sshd_config: line 89: X11Forwarding: command not found
  7. /etc/ssh/sshd_config: line 110: Subsystem: command not found

复制代码


rw 如何打开。
回复 支持 反对

使用道具 举报

发表于 2008-1-8 16:47:15 | 显示全部楼层
楼主一定要用图形界面么?若是shell环境,让程序跑在 screen 里面即可。
回复 支持 反对

使用道具 举报

发表于 2008-1-8 17:26:56 | 显示全部楼层
nohup cmd
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 17:55:05 | 显示全部楼层
Post by latteye;1804437
楼主一定要用图形界面么?若是shell环境,让程序跑在 screen 里面即可。



能有图形界面当然更好,

现在的问题是目前必需同时打开机器,如果自己的机器关掉以后,在Linux上运行的程序也中止了,跑在 screen 里面什么意思
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-8 18:14:51 | 显示全部楼层
Post by troyme;1804450
nohup cmd


nohup cmd是什么东东?
回复 支持 反对

使用道具 举报

发表于 2008-1-8 20:37:23 | 显示全部楼层
man nohup

nohup - run a command immune to hangups, with output to a non-tty
简单来说就让命令可以是不需要依赖任何终端运行,一般搭配后台&运行。
回复 支持 反对

使用道具 举报

发表于 2008-1-8 21:47:24 | 显示全部楼层
关于 screen 可以看看这里:http://latteye.com/tag/screen

图形界面,远程链接我就用Gnome自带的 vnc,个人感觉一个人用的话蛮方便。对于其他没多少经验。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表