Updating Your Web Site from Command Line

NOTE: The “Icarus” SSH Gateway has been decommissioned. The process for accessing files from off-campus has changed.

OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a network using the ssh protocol. Any computer with a working command line OpenSSH client (Linux, MacOSX, Windows + Cygwin, etc) can use command line applications to update personal webpages.

Additionally FUSE plugins such as SSHFS provide additional command line access methods.

The remote system can be any ECS Linux machine that is either accessible remotely (from off-campus) or accessible from a VPN connection. SFTP requires the on-campus machine to have a secure FTP server running.

Instructions

scp can be used similar to the UNIX cp command. For instance, to copy the file /tmp/index.html to one’s public web space, the command would be:

scp /tmp/index.html username@<your_server_name>.engr.uconn.edu:/share/dept_web/www.engr.uconn.edu/index.html

 

sftp is an interactive text-based application to transfer files to and from a remote system. The remote system must have a secure FTP server running. An sftp connection can be created as shown below. Then files could be transferred with mget, mput, and directories could be navigated with cd.

sftp username@<your_server_name>.engr.uconn.edu.

 

ssh allows interactive or non-interactive execution of remote commands on a computer running and OpenSSH server. One can launch a remote interactive shell with the following command, then modify files in /share/dept_web/www.engr.uconn.edu using the UNIX command line.

ssh username@<your_server_name>.engr.uconn.edu