How to disable telnet on solaris

Steps to enable root login for ssh and disable telnet on Solaris,

  • enable root login for ssh by editing the file vi /etc/ssh/sshd_config.

Change “PermitRootLogin no” entry to “PermitRootLogin yes”

  • Restart ssh,

svcadm restart svc:/network/ssh:default

  • Disable telnet,

svcadm disable telnet

About these ads

4 Comments »

  1. Ashwani said

    how to enable and disable the telnet and ssh in solaris

    • *enable root login for ssh by editing the file vi /etc/ssh/sshd_config.we can identify the last time and
      Change “PermitRootLogin no” as entry to “PermitRootLogin yes”

      *Then Restart ssh,
      svcadm restart svc:/network/ssh:default

      *Disable telnet,
      svcadm disable telnet
      *Disable ssh,
      svcadm disable ssh

  2. Lur said

    You don’t have to restart the service, but only reload the config file like that:
    svcadm refresh svc:/network/ssh

  3. *enable root login for ssh by editing the file vi /etc/ssh/sshd_config.we can identify the last line and
    Change “PermitRootLogin no” as entry to “PermitRootLogin yes”

    *Then Restart ssh,
    svcadm restart svc:/network/ssh:default

    *Disable telnet,
    svcadm disable telnet
    *Disable ssh,
    svcadm disable ssh

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: