L~$
L~$ touch 1.txt
L~$
L~$ scp 1.txt a@a:/usr/
a@a's password:
scp: /usr//1.txt: Permission denied
L~$
L~$ scp 1.txt root@a:/usr/
root@a's password:
1.txt 100% 935 0.9KB/s 00:00
L~$
L~$ ssh a@a "ls /usr/1.txt"
a@a's password:
/usr/1.txt
L~$
ssh нужно настройка разрешить в root и создать пародь от root.
1 /etc/ssh/sshd_config
найти PermitRootLogin without-password
на
PermitRootLogin yes
всё и рестарт ssh сервер.
Пользователь решил продолжить мысль 07 Июля 2015, 15:18:10:
создать пароль root
sudo passwd root