我虚拟机机子是ubuntu8.04 刚装了openssh 想从windows访问linux
不过我在虚拟机里测试ssh时,有问题。如下:
我在终端中敲入 ssh localhost 返回 read from socked failed: connection reset by peer
我debug得到的结果是 : ssh -vvv localhost
OpenSSH_4.6p1 Debian-5ubuntu0.6, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/listar/.ssh/identity type -1
debug1: identity file /home/listar/.ssh/id_rsa type -1
debug1: identity file /home/listar/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.6p1 Debian-5ubuntu0.6
debug1: match: OpenSSH_4.6p1 Debian-5ubuntu0.6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6p1 Debian-5ubuntu0.6
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by UNKNOWN
请大家帮忙看下,这个是为什么呢?
anonymous 于 2008-11-05 09:02:39发表:
哦,
Linux视频分享
www.akae.cn/study
嵌入式Linux免费体验日: 北京 亚嵌 11月8日开讲
http://www.akaedu.org/pages/center11_yuke.php
zhanglistar 于 2008-11-04 22:31:52发表:
还是自己解决了。
原来是更新源的问题。教育网ubuntu8.04更新源
deb http://debian.ustc.edu.cn/ubuntu/ gutsy main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-updates main restricted universe multiversettp://debian.ustc.edu.cn/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
原来的更新源的是hardy
更新源真的很重要啊!
zhanglistar 于 2008-11-03 12:21:56发表:
我openssh-server and openssh-client 都装了
服务也启动了啊
还要建立帐号?我记得在外一台机子上装没有建立过帐号啊?
不过我在本机上安装的过程中出现个一个package configuration 的窗口,是关于key的,我不知道是不是这里出现了问题。
sgx 于 2008-11-03 12:01:51发表:
需要安装openssh-server而不仅仅是客户端,还要启动服务建立ssh账户等
zhanglistar 于 2008-11-03 11:47:53发表:
一样的 一样的返回结果
yezhulin1982 于 2008-11-03 11:39:39发表:
试试用
$ ssh ip