SSH 登陆NetBSD4.0(不使用密钥对)

2009-05-13 11:23:46来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

vi rc.conf
Terminal type is xterm.
We recommend creating a non-root account and using su(1) for root access.
NetBSD#
NetBSD#
NetBSD# cat /etc/rc.conf
#       $NetBSD: rc.conf,v 1.96 2000/10/14 17:01:29 wiz Exp $
#
# see rc.conf(5) for more information.
#
# Use program=YES to enable program, NO to disable it. program_flags are
# passed to the program on the command line.
#
# Load the defaults in from /etc/defaults/rc.conf (if it's readable).
# These can be overridden below.
#
if [ -r /etc/defaults/rc.conf ]; then
        . /etc/defaults/rc.conf
fi
# If this is not set to YES, the system will drop into single-user mode.
#
rc_configured=YES
# Add local overrides below
#
wscons=YES
hostname=NetBSD
defaultroute="172.16.8.1"
ifcofnig_fxp0="inet 172.16.8.2 netmask 255.255.255.0"
sshd=YES
vi /etc/ssh/sshd.conf
NetBSD# cat /etc/ssh/sshd.cof
cat: /etc/ssh/sshd.cof: No such file or directory
NetBSD# cat /etc/ssh/sshd.conf
cat: /etc/ssh/sshd.conf: No such file or directory
NetBSD# cat /etc/ssh/sshd_config
#       $NetBSD: sshd_config,v 1.25 2006/10/15 14:01:53 adrianp Exp $
#       $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $
# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.
# 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 22
Protocol 2
#AddressFamily any
#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 1h
#ServerKeyBits 768
# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
# Slow machines or long keys may require more processing time.
LoginGraceTime 600
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys
# 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
# Don't read the user's ~/.rhosts and ~/.shosts files

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:NetBSD i386下console登陆设定

下一篇:日记 [2008年01月25日]