- 主题:./sshbbsd -p 2222 好象不能工作?
是不是要在编译的时候在什么地方改?
--
修改:liangls FROM 211.155.136.*
FROM 211.155.136.*
正在阅读 kbsbbs-2.0dev/sshbbsd/
【 在 liangls (精灵射手) 的大作中提到: 】
: 是不是要在编译的时候在什么地方改?
--
FROM 211.155.136.*
/etc/ssh/ssh_config
/etc/ssh/sshd_config
里面的port改了过来了,也重新启动了sshd服务。
但是他的端口死活就是不能改成2222。
和合租朋友在他的机器上,用同样的RedHat FC 2 DVD 安装光盘 安装然后互相试验,
结果也是一样,无奈。。。
只好出此下策,怎么改sshbbsd的端口??
【 在 liangls (精灵射手) 的大作中提到: 】
: 正在阅读 kbsbbs-2.0dev/sshbbsd/
--
修改:liangls FROM 211.155.136.*
FROM 211.155.136.*
第一,把你的 /etc/ssh/sshd_config 贴上来
第二,sshd 和 sshbbsd 不一样,你问的到底是哪一个?如果是 sshbbsd,他的端口在 /home/bbs/etc/sshd_config 里面改,如果是 sshd,或者修改 /etc/ssh/sshd_config,或者 /usr/sbin/sshd -p 端口号 启动
【 在 liangls@newsmth.net-SPAM.no (精灵射手) 的大作中提到: 】
: /etc/ssh/ssh_config
: /etc/ssh/sshd_config
: 里面的port改了过来了,也重新启动了sshd服务。
: 但是他的端口死活就是不能改成2222。
: 和合租朋友在他的机器上,用同样的RenHat FC 2 DVD 安装光盘 安装然后互相试验,
: 结果也是一样,无奈。。。
: 只好出此下策,怎么改sshbbsd的端口??
--
FROM 59.66.175.149
/usr/sbin/sshd -p 端口号 启动
这个是这么操作的。但是本地机器可以连接,别的机器就不能连了。
【 在 Carlking@thuenv.org-SPAM.no (C@rlKing·Pretty Boy~) 的大作中提到: 】
: 第一,把你的 /etc/ssh/sshd_config 贴上来
: 第二,sshd 和 sshbbsd 不一样,你问的到底是哪一个?如果是 sshbbsd,他的端口在 /home/bbs/etc/sshd_config 里面改,如果是 sshd,或者修改 /etc/ssh/sshd_config,或者 /usr/sbin/sshd -p 端口号 启动
--
FROM 211.155.136.*
不能连是彻底连不上还是其他什么?telnet那个端口有反应么?
【 在 liangls@newsmth.net-SPAM.no (精灵射手) 的大作中提到: 】
: /usr/sbin/sshd -p 端口号 启动
: 这个是这么操作的。但是本地机器可以连接,别的机器就不能连了。
--
FROM 59.66.175.149
/etc/ssh/sshd_config :
===========================================================================
# $OpenBSD: sshd_config,v 1.59 2002/09/25 11:17:16 markus Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
Port 2222
#Protocol 2,1
#ListenAddress 0.0.0.0
ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 3600
#ServerKeyBits 768
# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO
# Authentication:
#LoginGraceTime 120
#PermitRootLogin yes
#StrictModes yes
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
# rhosts authentication should not be used
#RhostsAuthentication no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#AFSTokenPassing no
# Kerberos TGT Passing only works with the AFS kaserver
#KerberosTgtPassing no
# Set this to 'yes' to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt no
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes
#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no
# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server
===========================================================================
~home/bbs/etc/sshd_config 这个文件是空的。
===========================================================================
【 在 Carlking@thuenv.org-SPAM.no (C@rlKing·Pretty Boy~) 的大作中提到: 】
: 第一,把你的 /etc/ssh/sshd_config 贴上来
: 第二,sshd 和 sshbbsd 不一样,你问的到底是哪一个?如果是 sshbbsd,他的端口在 /home/bbs/etc/sshd_config 里面改,如果是 sshd,或者修改 /etc/ssh/sshd_config,或者 /usr/sbin/sshd -p 端口号 启动
--
FROM 211.155.136.*
远程telnet kbs是好的。
ssh方式连接主机,(sshbbsd 没有开)
本地机是能连接的,别的机器就连接不上了。没有反映是,或者是说2222的端口refused
【 在 Carlking@thuenv.org-SPAM.no (C@rlKing·Pretty Boy~) 的大作中提到: 】
: 不能连是彻底连不上还是其他什么?telnet那个端口有反应么?
--
FROM 211.155.136.*
你把 ListenAddress :: 这一行注释掉试试..
【 在 liangls@newsmth.net-SPAM.no (精灵射手) 的大作中提到: 】
: 远程telnet kbs是好的。
: ssh方式连接主机,(sshbbsd 没有开)
: 本地机是能连接的,别的机器就连接不上了。没有反映是,或者是说2222的端口refused
--
FROM 59.66.175.149
不行的啊,原来是注掉的。
应为不行才打开的。
【 在 Carlking@thuenv.org-SPAM.no (C@rlKing·Pretty Boy~) 的大作中提到: 】
: 你把 ListenAddress :: 这一行注释掉试试..
--
FROM 211.155.136.*