how to scp from one box to another with no root ssh?



In the past, to move config or script files from one box to another on
my home network I've used scp or rsync.

However, recent discussions on the list have pointed out that root login
with ssh should not be allowed.

How then to copy files that either only root can read or only root can
place, or that need owner/permissions to be unchanged?

I have sshd setup to only allow ssh based on pre-existing keys (no
password login allowed), and it only listens on the local interface, and
I've got shorewall running and doesn't allow ssh to/from the net.

What am I missing?

Thanks,

Doug.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: ssh to remote machine with user login problem
    ... you need to run the ssh command with -v argument and send us the output ... while you are trying to access the system as root and as user. ... And of course the lines from /var/log/auth for a root login and for a user ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: remote logon
    ... B> I just completed install of 5.2.1 and am trying to logon remotely via SSH and keep getting access ... B> To unsubscribe, ... it is a bad habit to remotely log in as root, ...
    (freebsd-newbies)
  • Re: how to enable the root in telnet
    ... over the network if u make no ssh logins ... how to enable the root in telnet ... >> You're not supposed to log in as root over telnet. ... To unsubscribe, ...
    (freebsd-questions)
  • Re: authentication failure
    ... - root" successfully, ... but you can not log in via ssh as that same normal user and then "su - ... There are reasons why the default in Debian is PermitRootLogin no ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: Linux hacked
    ... Also, what exactly did the history file show, can you paste it into a mail ... > First let me say I'm a security novice. ... > been unsuccessful in getting root back. ... > via ssh but you could su in once logged in as one of three users. ...
    (Security-Basics)