Tag Info

New answers tagged


I suspect there's no myip recorded in /root/.ssh/known_hosts. Please try once sudo ssh root@myip interactively before running that script. Alternatively, you can disable host key checking: #!/bin/bash -v sshpass -p '<pypasswd>' scp -o StrictHostKeyChecking=no blah.img root@myip:/home/user/blah.img exit 0


Your root user doesn't have the same private keys that you are using when not running as root. Therefore, as root, you cannot copy the material. Try copying adding ~/.ssh/id_rsa to /root/.ssh/id_rsa (or some other private key you are using to connect to myip). Alternatively let the sudo do the other things, and change back to the "normal" user in the ...


You can assign the sticky bit to the working directory: chmod g+s ... That way whenever a file is created, it is assigned to that group. You can then edit the users' umask to allow group members to edit files by default.


To access your sftp from other hosts, please make sure following is installed and configured properly. Installed OpenSSH servers Configured sshd_config PubkeyAuthentication yes Subsystem sftp internal-sftp Added your public key to ~/.ssh/authorized_keys Start the ssh server with port 22/TCP open # /etc/init.d/sshd start # iptables -I INPUT -j ACCEPT -p ...


You can use SSHFS to work directly on the files on your computer, without copying them to the machine you're working on. mkdir ~/net/my-computer sshfs your-computer: ~/net/my-computer gedit ~/net/my-computer/my-secret-file.txt fusermount -u ~/net/my-computer Traces from your data may still end up on the disk via swap or temporary files. You can't avoid ...

Top 50 recent answers are included