Using a Linux Shell and SSH/SFTP
If you are familiar with using CLE@R, then using a Linux Shell and SSH/SFTP will feel very familiar. To manipulate files, SSH into organization.rice.edu with the command
Code Block |
---|
language | bash |
---|
title | SSH Command |
---|
linenumbers | true |
---|
|
ssh username@organization.rice.edu |
To upload and download files from organization.rice.edu, use the following SFTP command
Code Block |
---|
language | bash |
---|
title | SFTP Commands |
---|
linenumbers | true |
---|
|
sftp username@organization.rice.edu
put local_file_to_server.txt
get remote_file_from_server.txt |
Begin an SSH session
- Enter the SSH command shown above. Entering this command will show a confirmation for the server's fingerprint. Type "yes" * to continue.
![](/confluence/download/attachments/63774951/linux_ssh_confirmfinger.png?version=1&modificationDate=1405964240863&api=v2)
- Next enter your password. (Note: it will appear as if nothing is happening as you type your password, this is normal.)
![](/confluence/download/attachments/63774951/linux_ssh_pass.png?version=1&modificationDate=1405964240813&api=v2)
- Once you are into the system, you will be at your home directory, where you can manipulate files and folders.
![](/confluence/download/attachments/63774951/linux_ssh_homedir.png?version=1&modificationDate=1405964240829&api=v2)
- To exit, type "exit" * and press enter.
![](/confluence/download/attachments/63774951/linux_ssh_exit.png?version=1&modificationDate=1405964240874&api=v2)
Using SFTP to Upload and Download Files/Folders
- Open another terminal or Linux shell and change directories to your local directory.
![](/confluence/download/attachments/63774951/linux_sftp_gotolocaldir.png?version=1&modificationDate=1405964206985&api=v2)
- Use the SFTP command listed above to gain access to organization.rice.edu, then type in your password
![](/confluence/download/attachments/63774951/linux_sftp_pass.png?version=1&modificationDate=1405964240852&api=v2)
- Now you can use the PUT and GET commands to upload and download files/folders to organization.rice.edu respectively. In this example, I uploaded a generic text file called "test_file" and I downloaded the current contents of my public_html folder to my local directory. To exit the session, once again, type "exit" *.
![](/confluence/download/attachments/63774951/linux_sftp_putandget.png?version=1&modificationDate=1405964367601&api=v2)