请大家帮帮忙, SSH服务的问题
时间:2009-05-05
来源:互联网
在WINDOWS下用securecrt连接一台LINUX服务器,连接后,我的securecry显示ready.
在securecrt的模拟端VT100的上显示出了游标, 但不出现SHELL的提示符. 按什么键都没反应,可能是什么原因呢
在securecrt的模拟端VT100的上显示出了游标, 但不出现SHELL的提示符. 按什么键都没反应,可能是什么原因呢
作者: jiams 发布时间: 2009-05-05
只用pietty
作者: xinglp 发布时间: 2009-05-05
用pietty后,连接显示
server refused to alloca pty. 在那可设定允许呢
server refused to alloca pty. 在那可设定允许呢
作者: jiams 发布时间: 2009-05-05
linux 是 2.6.19.1 Unix98 PTY support 选定了, Legacy (BSD) PTY support 没选. 没装X, 是不是Unix98 PTY 不行呢
作者: jiams 发布时间: 2009-05-05
我是装完了LFS再安装ssh等了,就能用SecureCRT等工具的
过程是 其中的link是我参考的
LFS安装ssh
1. 安装openssl
#tar zxvf openssl-0.9.8e.tar.gz
#cd openssl-0.9.8e
#./config shared zlib
#make
#make test
#make install
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
#echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
#ldconfig –v
#openssl version -a
OpenSSL 0.9.8e 11 Apr 2007
built on: Sat Mar 24 21:24:41 CST 2007
platform: linux-elf
options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
OPENSSLDIR: "/usr/local/ssl"
2. 安装openssh
#cd /usr/local/src
#tar zxvf openssh-4.6p1.tar.gz
#cd openssh-4.6p1
#./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-ssl-dir=/usr/local/ssl --with-md5-passwords --mandir=/usr/share/man ----这里去掉—with-pam(不然会报错)
#make
然后在/etc/passwd 中加入:
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin (不然会报错)
#make install
# ssh -v
OpenSSH_4.6p1, OpenSSL 0.9.8e 11 Apr 2007
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]
#/usr/sbin/sshd -d
debug1: sshd version OpenSSH_4.6p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
socket: Address family not supported by protocol
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
#/usr/sbin/sshd
http://www.chinaunix.net/jh/29/922589.html
http://linux.chinaunix.net/bbs/thread-938397-1-1.html
http://bbs.ghtt.net/thread-111403-1-1.html
让sshd开机启动
tar xvf blfs-bootscripts-20080816.tar.bz2
cd blfs-bootscripts-20080816
make install-sshd
过程是 其中的link是我参考的
LFS安装ssh
1. 安装openssl
#tar zxvf openssl-0.9.8e.tar.gz
#cd openssl-0.9.8e
#./config shared zlib
#make
#make test
#make install
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
#echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
#ldconfig –v
#openssl version -a
OpenSSL 0.9.8e 11 Apr 2007
built on: Sat Mar 24 21:24:41 CST 2007
platform: linux-elf
options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
OPENSSLDIR: "/usr/local/ssl"
2. 安装openssh
#cd /usr/local/src
#tar zxvf openssh-4.6p1.tar.gz
#cd openssh-4.6p1
#./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-ssl-dir=/usr/local/ssl --with-md5-passwords --mandir=/usr/share/man ----这里去掉—with-pam(不然会报错)
#make
然后在/etc/passwd 中加入:
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin (不然会报错)
#make install
# ssh -v
OpenSSH_4.6p1, OpenSSL 0.9.8e 11 Apr 2007
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]
#/usr/sbin/sshd -d
debug1: sshd version OpenSSH_4.6p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
socket: Address family not supported by protocol
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
#/usr/sbin/sshd
http://www.chinaunix.net/jh/29/922589.html
http://linux.chinaunix.net/bbs/thread-938397-1-1.html
http://bbs.ghtt.net/thread-111403-1-1.html
让sshd开机启动
tar xvf blfs-bootscripts-20080816.tar.bz2
cd blfs-bootscripts-20080816
make install-sshd
作者: shopping.w 发布时间: 2009-05-07
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28