How to access to remote server by root directly on solaris

本文介绍如何在 Solaris 11 及以上版本的操作系统中启用 root 用户的 SSH 远程登录功能。具体步骤包括:修改 /etc/ssh/sshd_config 文件中的 PermitRootLogin 参数为 yes;重启 SSH 服务;更改 /etc/user_attr 中 root 用户的 type 属性为 normal 并重启系统。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

There are two steps you have to do on Solaris 11 or higher OS.

1.

root@server:~# vi /etc/ssh/sshd_config

Change PermitRootLogin no to yes

example :PermitRootLogin yes

root@server:~# svcadm restart ssh

2.

root@server:~# /etc/user_attr

Change root:::type=role to normal


WARNING: terminal is not fully functional
#etc/user_attr  (press RETURN)
# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
#
# The system provided entries are stored in different files
# under "/etc/user_attr.d".  They should not be copied to this file.
#
# Only local changes should be stored in this file.
#
root::::type=normal 
root@server:~# sync
root@server:~# reboot


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值