Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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

  • 27-03-2024 01:13PM
    #1
    Registered Users, Registered Users 2 Posts: 5,754 ✭✭✭


    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