SSH: Difference between revisions

From Psygen Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
<code>[user@localhost ~]$ scp examplefile yourusername@yourserver:/home/yourusername/</code>
<code>[user@localhost ~]$ scp examplefile yourusername@yourserver:/home/yourusername/</code>


This example sends ''examplefile'' from the directory you're currently in to ''/home/yourusername/'' on ''yourserver''
This example sends '''examplefile''' from the directory you're currently in to '''/home/yourusername/''' on '''yourserver'''

Revision as of 03:51, 17 December 2016

SSH

SSH allows you to connect to a shell on a remote computer.


Example:

[user@localhost ~]$ ssh username@yourserver


SCP

You can also use scp to securely transfer files.

Example:

[user@localhost ~]$ scp examplefile yourusername@yourserver:/home/yourusername/

This example sends examplefile from the directory you're currently in to /home/yourusername/ on yourserver