How do enable an ssh server in a zone

用户在Solaris 10 Update 6的Blade 2000上安装了Zone后,尝试启动SSH服务但未成功。通过检查发现SSH服务处于离线状态,并尝试使用svcadm命令启用服务,然而SSH服务仍然无法启动。进一步排查依赖关系后,发现存在未初始化的服务影响SSH服务的正常运行。

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

On Jun 2, 9:50 am, Dave <f...@xxxxxxx> wrote:

I've just installed a zone in Solaris 10 update 6 on a Blade 2000, but I
can't see to get the ssh server running.

First I check if it is online

# svcs ssh
STATE          STIME    FMRI
offline         0:56:54 svc:/network/ssh:default

It's not, so I try to enable it.

# svcadm enable ssh

but it is still not running.

# svcs ssh
STATE          STIME    FMRI
offline         0:56:54 svc:/network/ssh:default

So I tried the -r option to enable any dependancies.

# svcs -l ssh
fmri         svc:/network/ssh:default
name         SSH server
enabled      true
state        offline
next_state   none
state_time   Tue Jun 02 00:56:54 2009
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   optional_all/none svc:/system/filesystem/autofs (offline)
dependency   require_all/none svc:/network/loopback (online)
dependency   require_all/none svc:/network/physical (online)
dependency   require_all/none svc:/system/cryptosvc (online)
dependency   require_all/none svc:/system/utmp (offline)
dependency   require_all/restart file://localhost/etc/ssh/sshd_config
(online)

The link given in the command below ( http://sun.com/msg/SMF-8000-GE )
does not help much.

# svcs -xv ssh
svc:/network/ssh:default (SSH server)
  State: offline since Tue Jun 02 00:56:54 2009
Reason: Service svc:/system/sysidtool:net is starting.
    See: http://sun.com/msg/SMF-8000-GE
   Path: svc:/network/ssh:default
           svc:/system/filesystem/autofs:default
             svc:/network/nfs/client:default
               svc:/network/nfs/nlockmgr:default
                 svc:/network/rpc/bind:default
                   svc:/system/sysidtool:net
Reason: Service svc:/network/rpc/gss:default is uninitialized.
    See: http://sun.com/msg/SMF-8000-GE
   Path: svc:/network/ssh:default
           svc:/system/filesystem/autofs:default
             svc:/network/nfs/client:default
               svc:/network/rpc/gss:default
    See: man -M /usr/share/man -s 1M sshd
Impact: 1 dependent service is not running:
         svc:/milestone/multi-user-server:default

--
I respectfully request that this message is not archived by companies as
unscrupulous as 'Experts Exchange' . In case you are unaware,
'Experts Exchange'  take questions posted on the web and try to find
idiots stupid enough to pay for the answers, which were posted freely
by others. They are leeches.


You need to zlogin -C myzone once its installed.

This will finish the install and then give you the console login
prompt.
.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值