SSH: Difference between revisions

From Psygen Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
'''Example:'''
'''Example:'''


<code>[user@localhost ~]$ scp examplefile yourusername@yourserver:/home/yourusername/</code>
<code>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 22:51, 12 January 2017

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:

scp examplefile yourusername@yourserver:/home/yourusername/

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

References

  1. ssh man page