Beruflich Dokumente
Kultur Dokumente
os=Debian_9&p=ssh&f=2
# copy the [tes t.txt] on local to rem ote s erver [www.s rv.world]
debian@dlp:~$ scp ./test.txt debian@www.srv.world:~/
debian@10.0.0.30's password: # pas sword of the user
test.txt 100% 10 0.0KB/s 00:00
# copy the [/home /debian /tes t.txt] on remote server [www.srv.world] to the local
debian@dlp:~$ scp debian@www.srv.world:/home/debian/test.txt ./test.txt
debian@10.0.0.30's password:
test.txt 100% 10 0.0KB/s 00:00
[2] It's example to use SFTP (SSH File Transfer P rotocol). SFTP server function is
enabled by default, but if not, enable it to add the line [Subsystem sftp /usr /lib
/openssh /sftp-server] in [/etc /ssh /sshd̲config].
# change directory
sftp> cd public_html
sftp> pwd
Remote working directory: /home/debian/public_html
# exit
sftp> quit
221 Goodbye.