scp file user:password@host:/path
password is optional, you'll get asked for it anyway; scp is part of the openssh package
Uhm.. Do not put your password in plaintext in your commandline... use user@host. It will ask. Unless you want your password visible on the commandline, in your shell history , in ps, in /proc, etc.
]]>Actually scp is sftp.
They're not:
[stijn@hermes ~]$ file /usr/bin/sftp
/usr/bin/sftp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
[stijn@hermes ~]$ file /usr/bin/scp
/usr/bin/scp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
They're just both part of the SSH suite, and provide similar functionality. But they occupy different inodes, so they're clearly different binaries,
[stijn@hermes ~]$ ls -i /usr/bin/scp
146906 /usr/bin/scp
[stijn@hermes ~]$ ls -i /usr/bin/sftp
146903 /usr/bin/sftp
Although it's somewhat crappy, there's also sftp, which works just like commandline ftp.
Actually scp is sftp.
]]>Bob
]]>scp file user:password@host:/path
password is optional, you'll get asked for it anyway; scp is part of the openssh package
Wow, thanks!
]]>scp file user:password@host:/path
password is optional, you'll get asked for it anyway; scp is part of the openssh package
]]>I searched a bit on the web, came up with this link: http://news.metaparadigma.de/?p=226 , but I just don't know how to use the commands.
Just so you know, I've never used ssh before at all
]]>