You are not logged in.
I've got some homework from computer science; one being the simple task of uploading a file to an Ubuntu ssh server.
The problem is, I just can't figure out how to do it. It's described very well how to do it from Windows, using a program called pscp, but it just happens to be so that I don't run Windows.
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
Offline
scp file user:password@host:/path
password is optional, you'll get asked for it anyway; scp is part of the openssh package
Offline
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!
Offline
When it's not for a homework assignment, you can also mount the server via sshfs and then use your file manager to drag and drop.
Bob
Offline
Although it's somewhat crappy, there's also sftp, which works just like commandline ftp.
Offline
You should use SSH all the time!
Offline
Although it's somewhat crappy, there's also sftp, which works just like commandline ftp.
Actually scp is sftp.
[git] | [AURpkgs] | [arch-games]
Offline
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
Last edited by B (2008-11-16 22:31:27)
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Sorry if I wasn't clear; scp uses the sftp protocol.
[git] | [AURpkgs] | [arch-games]
Offline
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.
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Better yet, chuck the password entirely and use pub/privatekey authentication with a passphrase.
Stop looking at my signature. It betrays your nature.
Offline