ssh root denied

Remko Lodder remko at elvandar.org
Tue Apr 13 13:57:26 PDT 2004


> 
> 	But, what should be te correct approach when you want to copy
> root's files and/or remote execute programs as root with scripts using
> scp/ssh and key authentication?
> 	Like:
> 
> 	scp master.passwd host2:/etc/
> 	or
> 	ssh host2 'pwd_mkdb -p /etc/master.passwd'
> 

Tar them, chown the user logtransfer,
use logtransfer user to transer files.

never ever use root for that it's highly insecure ( imho even with key 
auth ).

"remote execute programs" why? cant you locally run them and fetch them 
with a dedicated lowerlevel account?

Root is almighty, use it with precaution, locally , or with su -,sudo.

Use it remote, get whacked, everything breaks, too bad.

My approach in a "hard" way :-)

Cheers

> 
> - Marcelo
> 


-- 

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl A Dutch community for helping newcomers on the 
hackerscene


More information about the freebsd-questions mailing list