Allow file transfer but not remote login using ssh by root user

From: Eric (eric.chin_at_pinnacle.co.uk)
Date: 06/30/04

  • Next message: Janek Bogucki: "OpenSSH_3.1p1: ~C gives a 'ssh>' prompt; What is this?"
    Date: 30 Jun 2004 01:33:30 -0700
    
    

    Greetings,

    I want to transfer file as root from server A to server B using rsync.
    I would like to prevent root user logon to server B directly.

    If I set 'PermitRootLogin' to no in sshd_config on server B, it will
    also stop the file transfer from server A eventhough public key is
    use.

    Is it possible to allow file transfer by root but disallow root logon
    directly ?

    Any pointer appreciated

    TIA

    Eric


  • Next message: Janek Bogucki: "OpenSSH_3.1p1: ~C gives a 'ssh>' prompt; What is this?"

    Relevant Pages

    • RFX Networks/ RackAdmin.com ALERT
      ... below was posted to some security websites. ... | in security and scalable server management on varying levels. ... Got Root? ... Your Server login ID is: ...
      (comp.os.linux)
    • RFX NETWORKS ALERT
      ... below was posted to some security websites. ... | in security and scalable server management on varying levels. ... Got Root? ... Your Server login ID is: ...
      (alt.linux)
    • Solaris Sparc 9 12/3 Core ./installer failing due Java?
      ... system SUNWadmr System & Network Administration Root ... system SUNWapchd Apache Web Server Documentation ... system SUNWapchu Apache Web Server (usr) ... system SUNWaudd Audio Drivers ...
      (comp.unix.solaris)
    • core install of Solaris 9 (sparc) package list can be trimmed ?
      ... This is a server that will have very specific reasons ... system SUNWadmr System & Network Administration Root ... system SUNWeu8os American English/UTF-8 L10N For OS Environment User Files ... system R SUNWfcip Sun FCIP IP/ARP over FibreChannel Device Driver ...
      (comp.unix.solaris)
    • [Full-Disclosure] RFX Networks
      ... | in security and scalable server management on varying levels. ... | monitor to take action during situations of service failure. ... Got Root? ... Your Server login ID is: ...
      (Full-Disclosure)