Difference between revisions of "User:Karnlund"

From MOD Wiki
Jump to navigation Jump to search
(Created page with "How to enable SFTP so that files can be easily managed using and SFTP client such as Transmit on MacOS. '''Mount the filesystem read/write''' mount / -o remount,rw '''...")
 
 
Line 12: Line 12:
  
 
     Subsystem      sftp    /usr/libexec/sftp-server
 
     Subsystem      sftp    /usr/libexec/sftp-server
 +
 +
'''Mount the filesystem read only'''
 +
 +
    mount / -o remount,ro

Latest revision as of 07:54, 8 May 2023

How to enable SFTP so that files can be easily managed using and SFTP client such as Transmit on MacOS.

Mount the filesystem read/write

    mount / -o remount,rw

Edit sshd config

    nano /etc/ssh/sshd_config

Enable SFTP by uncommenting the sftp server

    Subsystem       sftp    /usr/libexec/sftp-server

Mount the filesystem read only

    mount / -o remount,ro