位置: 编程技术 - 正文

FreeBSD系统SSH配置详解(freebsd怎么用)

编辑:rootadmin

推荐整理分享FreeBSD系统SSH配置详解(freebsd怎么用),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:freebsd ssh配置,freebsd怎么样,freebsd使用,freebsd 配置ip,freebsd 配置ip,freebsd ssh配置,freebsd使用手册,freebsd常用命令,内容如对您有帮助,希望把文章链接给更多的朋友!

修改freebsd可以用sshd权限用户登录ssh 但不能用root用户登录的方法

在/etc/ssh/sshd_config最后中加入

FreeBSD系统SSH配置详解(freebsd怎么用)

PermitRootLogin yes #允许root登录PermitEmptyPasswords no #不允许空密码登录PasswordAuthentication yes # 设置是否使用口令验证。就可以了

FreeBSD SSH配置详解

首先vi编辑/etc/inetd.conf,去掉ssh前的#,保存退出 (开启****ssh服务)编辑/etc/rc.conf最后加入:sshd_enable="yes"即可 激活sshd服务:techo#/etc/rc.d/sshd start用下面命令检查服务是否启动,在端口应该有****。#netstat -an ## check port number 最后vi /etc/ssh/sshd_config, 下面是我的配置文件:(/etc/ssh/sshd_config)##################################################### $OpenBSD: sshd_config,v 1. // :: markus Exp $# $FreeBSD: src/crypto/openssh/sshd_config,v 1..2.1 // :: des Exp $# This is the sshd server system-wide configuration file. See# sshd_config(5) for more information.# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin# 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.# Note that some of FreeBSD's defaults differ from OpenBSD's, and# FreeBSD has a few additional options.#VersionAddendum FreeBSD-#Port #Protocol 2#AddressFamily any#ListenAddress .1..#ListenAddress ::# HostKey for protocol version 1#HostKey /etc/ssh/ssh_host_key# HostKeys for protocol version 2#HostKey /etc/ssh/ssh_host_dsa_key# Lifetime and size of ephemeral version 1 server key#KeyRegenerationInterval 1h#ServerKeyBits # Logging# obsoletes QuietMode and FascistLogging#SyslogFacility AUTH#LogLevel INFO# Authentication:#LoginGraceTime 2m#PermitRootLogin no#StrictModes yes#MaxAuthTries 6#RSAAuthentication yes#PubkeyAuthentication yes#AuthorizedKey .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#IgnoreRhosts yes# Change to yes to enable built-in password authentication.PasswordAuthentication yes#PermitEmptyPasswords no# Change to no to disable PAM authentication#ChallengeResponseAuthentication yes# Kerberos options#KerberosAuthentication no#KerberosOrLocalPasswd yes#KerberosTicketCleanup yes#KerberosGetAFSToken no# GSSAPI options#GSSAPIAuthentication no#GSSAPICleanupCredentials yes# Set this to 'no' to disable PAM authentication, account processing,# and session processing. If this is enabled, PAM authentication will# be allowed through the ChallengeResponseAuthentication mechanism.# Depending on your PAM configuration, this may bypass the setting of# PasswordAuthentication, PermitEmptyPasswords, and# "PermitRootLogin without-password". If you just want the PAM account and# session checks to run without PAM authentication, then enable this but set# ChallengeResponseAuthentication=no#UsePAM yes#AllowTcpForwarding yes#GatewayPorts no#XForwarding yes#XDisplayOffset #XUseLocalhost yes#PrintMotd yes#PrintLastLog yes#TCPKeepAlive yes#UseLogin no#UsePrivilegeSeparation yes#PermitUserEnvironment no#Compression delayed#ClientAliveInterval 0#ClientAliveCountMax 3#UseDNS no#PidFile /var/run/sshd.pid#MaxStartups # no default banner path#Banner /some/path# override default of no subsystemsSubsystem sftp /usr/libexec/sftp-serverIgnoreRhosts yesIgnoreUserKnownHosts yesPrintMotd yesStrictModes noRSAAuthentication yesPermitRootLogin yes #允许root登录PermitEmptyPasswords no #不允许空密码登录PasswordAuthentication yes # 设置是否使用口令验证。##############################################记得修改完配置文件后,重新启动sshd服务器(/etc/rc.d/sshd restart)即可。 几点补充说明1,如果重启后还是不行请重新载入sshd_config 文件/etc/rc.d/sshd reload2,如果出现using keyboard-interactive authenticationpassword:请确认PasswordAuthentication是否已经改成yes另外如果客户端是putty那么请确认"尝试'智能键盘'认证(SSH-2)"的勾是否有去掉3,如果是使用root帐号登陆请确认密码是否为空空密码无法登陆4请确认是否有安装SSHsysinstall>>>configure>>>networking>>>sshd是否的勾是否有打上

FreeBSD 6.2用freebsd-update升级过程 FreeBSD6.2-RELEASE下用freebsd-update升级过程:mail#uname-aFreeBSDmail.extmail.org6.2-RELEASEFreeBSD6.2-RELEASE#0:FriNov::UTCqiao@qiao.lpzq:/usr/src/sys/i/compile/kernel_IPFWimail

FreeBSD双线负载均衡NAT服务器配置方法 #vi/etc/rc.conf================+==============+=================defaultrouter=...ifconfig_fxp0=inet..0.1netmask...0ifconfig_rl0=inet...2netmask...0ifconfig_rl1

FreeBSD系统下读写 NTFS分区 1、安装ntfs-3g:#cd/usr/ports/sysutils/fusefs-ntfs#makeinstallclean2、加入fuse加载:#ee/etc/rc.conf加入以下这一行:fusefs_enable=YES保存退出#ee/boot/loader.conf加入以下这一

标签: freebsd怎么用

本文链接地址:https://www.jiuchutong.com/biancheng/353950.html 转载请保留说明!

上一篇:用OpenBSD 3.8 release自带的FTPD架设FTP服务器

下一篇:FreeBSD 6.2用freebsd-update升级过程

  • 城建税和教育费附加需要计提吗
  • 随机赠送礼品个人所得税
  • 企业税号还未开户
  • 什么是红字增值服务
  • 什么是消费税?特征有哪些
  • 个体户的附加税表怎么填写
  • 退回以前年度教育附加费
  • 小规模纳税人进项
  • 农副产品收购发票税率是多少
  • 小企业取得存货计量的原则
  • 商品流通企业一般采用
  • 高速公路通行费电子发票怎么打印
  • 出售生产线计入哪里
  • 有限合伙企业合伙人分红纳税
  • 固定资产改良支出摊销从何时算起
  • 承包租赁成本明细表的预算项目
  • 供热企业采暖费收入免征增值税政策解读
  • 增值税零税率发票开具条件
  • 购货方申请红字发票怎么申报
  • 劳务外包公司代发工资能正常发吗
  • 发票密码区出来了还能用吗
  • 小规模10万以下免税分录
  • 公司支付给法院要交税吗
  • win10专业版如何改为家庭版
  • 营改增后的增值税税率
  • 腾讯电脑管家帮忙卸载
  • 矿山机械设备租赁有限公司
  • 基金投资于什么
  • 在win7系统中,怎么把D盘里的文件移到C盘里?
  • 广告公司广告费会计分录
  • 销售部发生广告宣传费计入财务费用
  • 经营租赁固定资产体现实质重于形式
  • 进程mmc.exe
  • 如何申请菜鸟驿站快递代理点
  • yii2框架运行原理
  • 购入旧的固定资产的入账价值
  • 黑尾鮰鱼
  • 以旧换新的税务处理会计
  • 小规模报税系统登录
  • 07. vue3+vite+qiankun搭建微应用前端框架,并接入vue3微应用
  • css过渡动画属性
  • 退货款现金流量表填什么?
  • 应补退税额是什么意思 法律
  • 企业收到运输发票
  • 公司无流水要交税不
  • 发票作废该如何操作
  • 融资租赁后期收入怎么算
  • 高速公路通行费抵扣税率
  • 委托付款做账怎么做
  • 按揭贷款汽车会被抵押吗
  • 为什么要计提工资
  • 凭证导致账簿错误
  • sqlserver触发器语法
  • windos桌面
  • ubuntu unity8
  • centos7安装软件包命令
  • win7系统点击桌面图标闪退
  • w10系统每次启动都要选择系统
  • 角色格斗类游戏
  • linux怎么安装rz
  • shell脚本 $?
  • jquery width
  • 月经其间可以吃消摇丸吗
  • angular form表单
  • 如何获取医院电子发票
  • Nodejs+angularjs结合multiparty实现多图片上传的示例代码
  • diy相册设计
  • JavaScript中的方法名不区分大小写
  • javascript的几种数据类型
  • python语言中
  • js保存设置
  • 中奖个人所得税扣除标准
  • 谈心谈话记录由谁填写
  • 鉴证服务是指什么
  • 美国各地区消费水平
  • 医保可以直接到税局买吗?
  • 办理出口退税需要销售合同吗
  • 南京市车位产权证办理流程
  • 安徽省滁州市税务局地址
  • 放管服中的服的深层含义
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设