Thanks. This is my current config. Good things is file “usr/local/etc/ssh/sshd_config” is remain, but ssh service does not restart automatically.
Hence, I’ve to restart it manually after reboot. Is it possible to make this permanent?
RESTART SSH SERVER MANUALLY
root@box:~# /usr/local/etc/init.d/openssh start
root@box:~# passwd tc
Changing password for tc
New password:
VERIFY SSH SERVICE
root@box:~# ps | grep ssh
814 root /usr/local/sbin/sshd
820 root sshd: tc [priv]
828 tc {sshd} sshd: tc@pts/0
890 root grep ssh
root@box:~#
root@box:~# ls -l /usr/local/etc/ssh/
total 28
lrwxrwxrwx 1 root root 44 Aug 12 07:02 moduli -> /tmp/tcloop/openssh/usr/local/etc/ssh/moduli
lrwxrwxrwx 1 root root 56 Aug 12 07:02 ssh_config.example -> /tmp/tcloop/openssh/usr/local/etc/ssh/ssh_config.example
-rw------- 1 root root 668 Aug 12 07:07 ssh_host_dsa_key
-rw-r--r-- 1 root root 598 Aug 12 07:07 ssh_host_dsa_key.pub
-rw------- 1 root root 227 Aug 12 07:07 ssh_host_ecdsa_key
-rw-r--r-- 1 root root 170 Aug 12 07:07 ssh_host_ecdsa_key.pub
-rw------- 1 root root 1679 Aug 12 07:07 ssh_host_rsa_key
-rw-r--r-- 1 root root 390 Aug 12 07:07 ssh_host_rsa_key.pub
-rw-r--r-- 1 root root 3715 Aug 1 02:44 sshd_config
lrwxrwxrwx 1 root root 57 Aug 12 07:02 sshd_config.example -> /tmp/tcloop/openssh/usr/local/etc/ssh/sshd_config.example
root@box:~#
CURRENT CONFIG
root@box:~# ls -l /opt/.filetool.lst
-rw-rw-r-- 1 root staff 39 Aug 12 05:57 /opt/.filetool.lst
root@box:~#
root@box:~# cat /opt/.filetool.lst
opt
home
usr/local/etc/ssh/sshd_config
root@box:~#
BACKUP
root@box:~# filetool.sh -b
Backing up files to /mnt/sda1/tce/mydata.tgzDone.
root@box:~#
AFTER REBOOT
root@box:~# ps | grep ssh
798 root grep ssh
root@box:~#
root@box:/# ls -l /usr/local/etc/ssh/
total 28
lrwxrwxrwx 1 root root 44 Aug 12 06:55 moduli -> /tmp/tcloop/openssh/usr/local/etc/ssh/moduli
lrwxrwxrwx 1 root root 56 Aug 12 06:55 ssh_config.example -> /tmp/tcloop/openssh/usr/local/etc/ssh/ssh_config.example
-rw-r--r-- 1 root root 3715 Aug 1 02:44 sshd_config
lrwxrwxrwx 1 root root 57 Aug 12 06:55 sshd_config.example -> /tmp/tcloop/openssh/usr/local/etc/ssh/sshd_config.example
root@box:/#