Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

SolarIS VM configure sftp. After restart ssh, the sshd_config file resets?

Options
  • 27-03-2024 1:13pm
    #1
    Registered Users Posts: 5,532 ✭✭✭


    How do i avoid this happening, i need the sshd_config  file to contain

    Subsystem    sftp  /usr/lib/ssh/sftp-server


    root@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# echo "Subsystem    sftp  /usr/lib/ssh/sftp-server" >> /etc/ssh/sshd_config

    root@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# ls -ltr /etc/ssh/sshd_config

    -rw-r--r--  1 root   sys     2435 Mar 27 12:11 /etc/ssh/sshd_config


    But when i restart the contents reset. Ive even tried changing permissions so that the kernel cant get at it

    root@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# chmod 444 /etc/ssh/sshd_config

    root@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# ls -ltr /etc/ssh/sshd_config

    -r--r--r--  1 root   sys     2435 Mar 27 12:11 /etc/ssh/sshd_config

    root@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# svcadm restart ssh                  root@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# ls -ltr /etc/ssh/sshd_config


    But she still manages

    -rw-r--r--  1 root   sys     2386 Mar 27 12:11 /etc/ssh/sshd_config



Comments

Advertisement