Sunday, August 23, 2009

About SSH (Secure Sheel) in Solaris

http://gandevtuna.blogspot.com

# Solaris 9
Untuk Disable service SSH

bash # /etc/init.d/sshd stop
bash # /etc/rc3.d/S89sshd stop



Untuk Enable service SSH
bash # /etc/init.d/sshd start
bash # /etc/rc3.d/S89sshd start


Restart Service SSH
bash # kill -HUP `cat /var/run/sshd.pid`


# Solaris 10
Check service SSH

bash# svcs | grep ssh
online Jan_21 svc:/network/ssh:default


jika offline,

bash # svcadm enable -t network/ssh:default
bash # /lib/svc/method/sshd start


Disable Service SSH,
bash # svcadm disable -t network/ssh:default


Restart service SSH,
bash # svcadm restart network/ssh:default
bash # /lib/svc/method/sshd restart


Refresh service SSH,
bash # svcadm refresh network/ssh:default


Untuk user root supaya bisa gunakan SSH ketika masuk ke system
bash> vi /etc/ssh/sshd_config

[...]
# Valid options are yes, without-password, no.
PermitRootLogin no
[....]

ganti no menjadi yes

0 komentar:

Post a Comment

 
footer