Example: To transfer a file "test.html" to the folder public_html
on the math1c account at fas, type
sftp math1c.hogwards.edu
Connecting to fas.hogwards.edu...
math1c.hogwards.edu's password:********
sftp>cd public_html
sftp>put test.html
sftp>exit
|
scp (Solaris, Linux, OSX)
The same file transfer can be performed better with
scp test.html math1c.hogwards.edu:public_html
math21b.hogwards.edu's password: ********
|
Authomatic Login
If you don't want to type the password every time or
you need to upload files using a script, it can be helpful
to allow authomatic access to the account. To do so, follow
the following steps.
Just type return, when asked for the file to save the key.
When the keygeneration program askes you for a passphrase, leave
an empty passphrase, twice. Now transfer this file to the account
to which you want to have automatic access:
scp .ssh/id_sra.pub math1c.hogwards.edu:
|
Now log into that account using ssh and type
mkdir .ssh
cat id_sra.pub >> .ssh/authorized_keys2
|
You should now be able to access the account math1c.hogwards.edu
without typing the password.
|