LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1244|回复: 9

ssh普通用户登录问题?

[复制链接]
发表于 2003-10-5 13:30:39 | 显示全部楼层 |阅读模式
ssh我想让普通用户也能登录,

ssh_config是这样的,


# $OpenBSD: ssh_config,v 1.16 2002/07/03 14:21:05 markus Exp $

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:

#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for various options

# Host *
#   ForwardAgent no
#   ForwardX11 no
#   RhostsAuthentication no
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   BatchMode no
#   CheckHostIP yes
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
#   EscapeChar ~

   PermitRootLogin no  /*这句是我自己加上去的*/

Host *
  ForwardX11 yes


但出现了这样,,,,,怎办啊??

/etc/ssh/ssh_config: line 38: Bad configuration option: PermitRootLogin
/etc/ssh/ssh_config: terminating, 1 bad configuration options
发表于 2003-10-6 22:34:20 | 显示全部楼层
我的默认就可以啊
发表于 2003-10-7 07:46:49 | 显示全部楼层
你加的那句有问题吧
还有
host *是有空格的
或者你把加的那句放在
host * 下面试试
发表于 2003-10-7 12:39:17 | 显示全部楼层
你是要改sshd_config
不是 ssh_config
发表于 2003-10-7 14:45:15 | 显示全部楼层
默认就是支持普通用户登陆但不允许root用户登陆的!
发表于 2003-10-7 17:01:06 | 显示全部楼层
但登陆后就是root帐号
发表于 2003-10-7 21:38:58 | 显示全部楼层
默认就支持root和普通用户ssh登陆.
 楼主| 发表于 2003-10-20 10:31:17 | 显示全部楼层
其实都很简单嘛,ssh -l 用户名 ip

这样就可以了, ,
发表于 2004-10-11 11:25:40 | 显示全部楼层
PermitRootLogin no /*这句是我自己加上去的*/
这句是回到sshd_config文件中的.
 楼主| 发表于 2004-10-11 13:28:45 | 显示全部楼层
考古呵呵,之前我学linux时问的问题 !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表