Created
          May 11, 2019 13:21 
        
      - 
      
- 
        Save rwese/8e59d17e5e26f9b3738f9955af9b6349 to your computer and use it in GitHub Desktop. 
    winscp - sftp sudo
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #/usr/bin/env bash | |
| # At times when you really need to remote edit files owned by root via WINSCP | |
| # or other SFTP Clients... | |
| # | |
| # Winscp Link for this: | |
| # https://winscp.net/eng/docs/faq_su | |
| sudo su -c /usr/lib/openssh/sftp-server | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment