Solaris 10下开启Root远程访问的步骤

原创 2012年03月31日 15:18:11

Solaris 10下开启root远程访问的步骤

最后,用命令“svcadm restart ssh”重启服务就可以了。

bash-3.00# grep PermitRootLogin /etc/ssh/sshd_config 

PermitRootLogin no 
bash-3.00# vi /etc/ssh/sshd_config 
"/etc/ssh/sshd_config" 156 行,5026 字符 

# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# ident "@(#)sshd_config        1.9     09/04/30 SMI"
# Configuration file for sshd(1m)

# Protocol versions supported
# The sshd shipped in this release of Solaris has support for major versions
# 1 and 2.  It is recommended due to security weaknesses in the v1 protocol
# that sites run only v2 if possible. Support for v1 is provided to help sites
# with existing ssh v1 clients/servers to transition.
# Support for v1 may not be available in a future release of Solaris.
# To enable support for v1 an RSA1 key must be created with ssh-keygen(1).
# RSA and DSA keys for protocol v2 are created by /etc/init.d/sshd if they
# do not already exist, RSA1 keys for protocol v1 are not automatically created.

# Uncomment ONLY ONE of the following Protocol statements.

# Only v2 (recommended)
Protocol 2

# Both v1 and v2 (not recommended)
#Protocol 2,1

# Only v1 (not recommended)
#Protocol 1

# Listen port (the IANA registered port number for ssh is 22)
Port 22

# The default listen address is all interfaces, this may need to be changed
# if you wish to restrict the interfaces sshd listens on for a multi homed host.
# Multiple ListenAddress entries are allowed.

/PermitRootLogin no
# To disable tunneled clear text passwords, change PasswordAuthentication to no.
PasswordAuthentication yes

# Use PAM via keyboard interactive method for authentication.
# Depending on the setup of pam.conf(4) this may allow tunneled clear text
# passwords even when PasswordAuthentication is set to no. This is dependent
# on what the individual modules request and is out of the control of sshd
# or the protocol.
PAMAuthenticationViaKBDInt yes

# Are root logins permitted using sshd.
# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user
# maybe denied access by a PAM module regardless of this setting.
# Valid options are yes, without-password, no.
PermitRootLogin yes

# sftp subsystem
Subsystem       sftp    /usr/lib/ssh/sftp-server

# SSH protocol v1 specific options
# The following options only apply to the v1 protocol and provide
# some form of backwards compatibility with the very weak security
# of /usr/bin/rsh.  Their use is not recommended and the functionality
# will be removed when support for v1 protocol is removed.

# Should sshd use .rhosts and .shosts for password less authentication.
IgnoreRhosts yes
RhostsAuthentication no

"/etc/ssh/sshd_config" 158 行,5030 字符 
bash-3.00# svcadm restart ssh


  • pucao_cug
  • pucao_cug
  • 2017年03月21日 20:05
  • 2725


基于安全考虑root账户一般只能本地访问,但是在开发过程中可能需要打开root的远程访问权限。下面是基本的步骤: 1、登录到mysql中,为root进行远程访问的授权,执行下面的命令:   mysql...
  • qq_29246225
  • qq_29246225
  • 2016年09月27日 14:23
  • 12279

phpmyadmin 创建远程可访问mysql用户

  • cdy102688
  • cdy102688
  • 2014年07月15日 16:12
  • 3951

Centos 7 mysql 5.7 给root开启远程访问权限,修改root密码

1.MySql-Server 出于安全方面考虑只允许本机(localhost,来连接访问. 这对于 Web-Server 与 MySql-Server 都在同一台服务器上的网站架...
  • zhihui1017
  • zhihui1017
  • 2017年02月06日 22:08
  • 3557


转载自:点击打开链接 在Redhat5中开通Root远程登录详解(Telnet)      Redhat 开通 Ro...
  • wjciayf
  • wjciayf
  • 2015年01月07日 11:01
  • 1283

ubuntu14.04 安装MariaDB10.0并允许远程访问

MariaDB是一个社区驱动的、采用XtraDb存储引擎的MySQL分支版本,由MySQL创始人Michael Widenius带领开发,遵循GPL v2.0协议开源。因为MySQL创始人的介入,Ma...
  • u012348345
  • u012348345
  • 2016年04月23日 16:31
  • 3745


ssh是可以代替telnet的一种远程管理的方式.并且具有安全\快捷等优点的一种服务. 方法一:进入Xwindows, 在shell窗口执行setup命令,选择system service启动s...
  • a351945755
  • a351945755
  • 2014年02月21日 17:16
  • 29438


1.MySql-Server 出于安全方面考虑只允许本机(localhost,来连接访问. 这对于 Web-Server 与 MySql-Server 都在同一台服务器上的网站架...
  • u013293516
  • u013293516
  • 2014年07月04日 17:23
  • 319


1.MySql-Server 出于安全方面考虑只允许本机(localhost,来连接访问. 这对于 Web-Server 与 MySql-Server 都在同一台服务器上的网站架...
  • czz2010
  • czz2010
  • 2015年12月25日 15:46
  • 150


mysql> USE mysql; -- 切换到 mysql DB Database changed mysql> SELECT User, Password, Host FROM user; -...
  • xuhonglei_2004
  • xuhonglei_2004
  • 2015年01月23日 18:32
  • 321
您举报文章:Solaris 10下开启Root远程访问的步骤