Introductory Note 711 & 811. Remote Access to Computer Science Linux Files Using Secure Shell Protocols



Similar documents
Secure Shell. The Protocol

Using SSH Secure Shell Client for FTP

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to ITC

Using SSH Secure FTP Client INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 2.0 Fall 2008.

Installing the SSH Client v3.2.2 For Microsoft Windows

Install FileZilla Client. Connecting to an FTP server

Creating a Website with Publisher 2013

WinSCP PuTTY as an alternative to F-Secure July 11, 2006

Miami University RedHawk Cluster Connecting to the Cluster Using Windows

Tutorial Guide to the IS Unix Service

Using Microsoft Expression Web to Upload Your Site

Creating a Web Site with Publisher 2010

WS_FTP Pro for Windows 95/98/NT

Configuring for SFTP March 2013

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to IROC RI

Virtual Office Remote Installation Guide

WinSCP for Windows: Using SFTP to upload files to a server

HPCC - Hrothgar Getting Started User Guide

Web File Management with SSH Secure Shell 3.2.3

FUGU - SFTP FOR MACS- REFERENCE GUIDE

Creating a Website with MS Publisher

Uploading files to a web server using SSH Secure Shell 3.2.9

Getting the most out of your new Aalto workstation An Aalto IT guide for personnel migrating to the new Aalto workstation environment

Using SSH Secure File Transfer to Upload Files to Banner

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

NAS 225 Introduction to FTP Explorer

NAS 109 Using NAS with Linux

PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007

How to FTP (How to upload files on a web-server)

Using Remote Desktop with the Cisco AnyConnect VPN Client in Windows Vista

Instructions for Accessing the Advanced Computing Facility Supercomputing Cluster at the University of Kansas

OSPI SFTP User Guide

Access Instructions for United Stationers ECDB (ecommerce Database) 2.0

Install and configure SSH server

How to use SURA in three simple steps:

2 Advanced Session... Properties 3 Session profile... wizard. 5 Application... preferences. 3 ASCII / Binary... Transfer

Installation Guidelines (MySQL database & Archivists Toolkit client)

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

How to use FTP Commander

Secure File Transfer Protocol User Guide

Moxa Device Manager 2.3 User s Manual

Installing Remote Desktop Connection

Using the CCNY Server Space with Secure Shell 3.0 for Windows Created by Doris Grasserbauer

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

Connecting to the School of Computing Servers and Transferring Files

Lab 8: Configuring Backups

Export & Backup Guide

TAMUS Terminal Server Setup BPP SQL/Alva

Using Remote Web Workplace Version 1.01

SFTP Server User Login Instructions. Open Internet explorer and enter the following url:

WinSCP Tutorial 01/28/09: Y. Liow

MiraCosta College now offers two ways to access your student virtual desktop.

Moxa Device Manager 2.0 User s Guide

enter the administrator user name and password for that domain.

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

HOW TO USE THE File Transfer Protocol SERVER ftp.architekturaibiznes.com.pl

MATLAB on EC2 Instructions Guide

AnzioWin FTP Dialog. AnzioWin version 15.0 and later

Network Printing In Windows 95/98/ME

Access your directories (home directory and shared directories) outside Tilburg University

Accessing Personal Web Folders Macon State College

SSH and Basic Commands

DP-313 Wireless Print Server

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

Ashgate FTP Web Login

Accessing the FTP Server - User Manual

Remote Desktop In OpenSUSE 10.3

NAS 323 Using Your NAS as a VPN Server

Connecting to LRDC Fileserver Remotely Using Windows XP & SRemote VPN

File Manager Pro User Guide. Version 3.0

Installing the Microsoft Network Driver Interface

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

CASHNet Secure File Transfer Instructions

Joining an XP workstation to a domain Version 1.00

Setting Up a Dreamweaver Site Definition for OIT s Web Hosting Server

Information & Communication Technologies FTP and GroupWise Archives Wilfrid Laurier University

XFTP 5 User Guide. The Powerful SFTP/FTP File Transfer Program. NetSarang Computer Inc.

WinSCP: Secure File Transfer Using WinSCP for Secure File Transfer on Windows

Accessing your Staff (N and O drive) files from off campus

How to set FTP Server (IIS)

Instructions for Setup and Connecting to Department of Education Secure FTP(SFTP) server January 23, 2013

Remote Desktop Services

REMOTE DESKTOP SETUP INSTRUCTIONS

Using WS_FTP. This tutorial explains how to use WS_FTP, a File Transfer Program for Microsoft Windows. INFORMATION SYSTEMS SERVICES.

RETRIEVING NMR DATA JB Stothers NMR Facility Materials Science Addition 0216 Department of Chemistry Western University

1. Installation Overview

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

LRDC Computing Services

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

13.1 Backup virtual machines running on VMware ESXi / ESX Server

Computing Service G72. File Transfer Using SCP, SFTP or FTP. many leaflets can be found at:

Using Internet or Windows Explorer to Upload Your Site

Transcription:

Cardiff University Cardiff School of Computer Science Prifysgol Caerdydd Ysgol Cyfrifiadureg Caerdydd Introductory Note 711 & 811 Remote Access to Computer Science Linux Files Using Secure Shell Protocols Robert Evans 16th September, 2005 Copyright c 2003, 2004, 2005 Robert Evans. Email: Robert.Evans@cs.cardiff.ac.uk Abstract Users of home computers, computers in halls of residence or of workstations on the campus network outside Cardiff School of Computer Science may want to access files in their Linux home directories. This Note gives examples of how this can be done with Secure Shell SCP and SFTP protocols. Contents 1 Secure Shell File Access Protocols 1 1.1 Applications.................................. 1 2 Copying files with SCP 2 2.1 Examples................................... 2 3 Copying files with SFTP 2 3.1 Examples................................... 3 4 SSH R Secure File Transfer Client on Windows 3 5 ixplorer Windows File Transfer Application 6 6 Other Ways of Connecting to Your Home Directory 8

1 Secure Shell File Access Protocols Secure shell protocols can be used for terminal connection to remote computers, for remote command execution, and for copying files. File copying uses secure copy (SCP) or secure ftp (SFTP). You can connect to the server lapis.cs.cf.ac.uk in Cardiff School of Computer Science to copy files to and from your Linux file space. 1.1 Applications Linux, UNIX and MacOSX - The SSH programs for Linux, UNIX and MacOSX include shell commands scp and sftp which use SCP and SFTP protocols repectively. SSH program suites are often standard with these operating systems, or they can be obtained from www.ssh.com or www.openssh.net, or from the systems software repositories. Run the Linux/UNIX/MacOSX commands in a terminal shell window. Windows Commands - There are corresponding commands with the Windows SSH R Secure Shell Client, namely scp2 and sftp2. This client can be obtained from www.ssh.com, or downloaded from http://www.mirror.ac.uk/mirror/ftp.ssh.com/sshsecureshellclient-3.2.9.exe. The PuTty suite for Windows also has equivalent programs, pscp and psftp. PuTty is available from http://www.chiark.greenend.org.uk/ sgtatham/putty/. Run these commands in a Windows command window. Windows GUIs - In addition, there are two Windows graphical interfaces for file transfer using SCP protocols. The SSH R Secure Shell Client has a File Transfer mode, and an application called ixplorer is a graphical front end to pscp. 2 Copying files with SCP With the Linux/UNIX/MacOSX terminal shell command scp and the Windows commands scp2 or pscp, you can copy files and directories between your workstation and the School s Linux server lapis. 2.1 Examples When you run any of these examples, you will be prompted for your password on lapis. You can use your University password. The examples show the scp command but substitute scp2 or pscp as appropriate. Copy a file Student.java from your home computer to your file space on the School s Linux servers: scp Student.java scmxxx@lapis.cs.cf.ac.uk:student.java (where scmxxx is your user name). Copy a file getrecords.sql from your Linux file space to your own workstation: scp scmxxx@lapis.cs.cf.ac.uk:getrecords.sql getrecords.sql Copy directory example1 and its contents from your Linux file space to your own workstation: 2

scp -r scmxxx@lapis.cs.cf.ac.uk:example1. (. means copy the files to the current directory on your workstation. A new directory example1 will be created there containing copies of the files and directories in the server s example1 ). Copy the contents of directory mysite from your home computer into directory public html on the School s Linux server: cd mysite scp -r * scmxxx@lapis.cs.cf.ac.uk:project_html (on Windows use *.* instead of * ). 3 Copying files with SFTP SFTP is a secure protocol with similar commands to the standard Internet File Transfer Protocol (FTP). However, it is not a secure route to standard FTP servers. It can be connected to servers running secure SFTP protocols only. Many sites which allow SSH terminal connection are also configured to allow SFTP connection. In our case, you can use SFTP to connect to the School s Linux server lapis to transfer files. 3.1 Examples sftp and sftp2 or psftp are traditional line-oriented commands which run in a terminal (or command) window. In the examples, substitute sftp2 or psftp instead of sftp where appropriate. Connect to lapis: sftp scmxxx@lapis.cs.cf.ac.uk You will be prompted for your password on lapis. You can use your University password. Once logged in, sftp issues a prompt sftp> when it is ready for a command from you. Copy file Course.java from your home workstation to your file space on the School s Linux network: put Course.java List the contents of your home directory on lapis: dir Copy file questions.pdf from your file space on lapis to your home computer: get questions.pdf Terminate sftp: quit 3

4 SSH R Secure File Transfer Client on Windows The SSH R Secure Client for Windows from SSH.com is a terminal client and file transfer client. You can download a self-extracting installation file for this from http://www.mirror.ac.uk/mirror/ftp.ssh.com/sshsecureshellclient-3.2.9.exe. Start the SSH Secure File Transfer Client from the Programs menu or from its icon. The file transfer window shows the local file system in a panel on the left and the remote file system in a panel on the right. Initially it isn t connected to a remote computer, so the right panel is empty. Click on Quick Connect to get a connection dialogue window. Type lapis.cs.cf.ac.uk as the host name and enter your Linux user name in the User Name field. Make sure the Port Number is 22. Click on Connect to connect the file transfer application to lapis. Once the connection is made, you will be asked for your password. You may use your University password. 4

Now the panel on the right fills with icons showing the files in your Linux home directory. To copy files to or from the Linux server, lapis, simply hold down the left mouse button when the pointer is over a file and drag it to the other panel. The transfer log at the bottom of the window lists the file name and shows you where it has been copied, indicating with an arrow whether it has been uploaded to the server for downloaded from it. When you have finished, disconnect the file transfer application from the server by using the File pull-down menu. Click on OK if a confirmation dialogue appears. 5

5 ixplorer Windows File Transfer Application ixplorer is a front-end to pscp. Obtain ixplorer.exe, pscp.exe, putty.exe and plink.exe from http://www.chiark.greenend.org.uk/ sgtatham/putty/. Place them all in a single directory on your Windows PC. Open the directory where ixplorer and pscp are located on your PC and double-click on the ixplorer icon to start it. The ixplorer window has three panels. On the right is an explorer hierarchy for the local PC showing its desktop, the network and the files on the PC itself. On the left is a similar hierarchy for remote secure shell hosts. At the base is a log window showing file movements between the local host and remote hosts. Initially, there are no entries under SSH Hosts. Click on the Add SSH Host icon to configure a new remote host. 6

The Add SSH Host icon starts a properties window where you enter details of the remote host. Enter lapis.cs.cf.ac.uk as the name of the host and as the display name and enter your Linux user name in the user name field. If you are on a slow connection or if you have very many files in your directory on lapis, it is wise to increase the Connection Timeout beyond the 15 seconds given as default. Now lapis will appear in the remote hosts panel. Double click on the icon alongside lapis to open a connection. You will be prompted for your password. The contents of your lapis directory appear in the remote host panel. To copy files to or from lapis, simply click on the file with the left mouse button, hold the button down and drag from the local to remote panel or vice versa. 7

When you have finished, locate the ixplorer icon docked in the task tray at the bottom right of the screen. Right-click the mouse and select Exit to terminate ixplorer. 6 Other Ways of Connecting to Your Home Directory There are other ways to connect to your home directories on Linux or Novell using SMB (CIFS Microsoft Networking) protocols and WebDAV protocols. See Notes 713, 714, 715, 716 and 717. 8