Using SSH Secure Shell Client for FTP The SSH Secure Shell for Workstations Windows client application features this secure file transfer protocol that s easy to use. Access the SSH Secure FTP by double-clicking on the SSH Secure Shell File Transfer Client icon. (See icon at right; be sure you select the SSH icon showing the yellow tabbed folder; the similar white icon is not the shortcut to this FTP feature.) Login to SSH Secure Shell Transfer Client The left side of the terminal window features the Local View, usually the file list of your computer s desktop. The right side, the Remote View, is gray (inactive) because you have not yet logged in to your remote hills server. The title bar reads defaultsftp SSH Secure File Transfer and the terminal window status bar at the lower left of the window reads Not connected press Enter or Space to connect. Press the Enter key or the Space bar. (Or, select the Connect option in the File Menu.) The dialog box overlays the SSH window. The title bar reads Connect to Remote Host. Enter both the host name and the username. Your student account is on host hills.ccsf.edu Your username is your hills login name. Refer to the handout HP Unix #1: Logging in and Logging Out for additional login assistance. Strike the Enter key or click the Connect button The Host Identification box overlays the File Transfer window. Click the NO button. (Not all of the users in ICL-1 use the same host.) Page 1 of 6
Another dialog box appears, titled Message from the Server. Click OK or strike the Enter key. Now, the authentication dialog box overlays the terminal window. The title bar reads Enter Authentication Response. Enter the password to your hills account. The password itself does not display; it is masked with asterisks. Note: you cannot change your password using this application. In order to change your password, log in to your hills account using the other SSH Secure Shell client icon on the desktop (the white icon, called Ssh Client). When you successfully log in to your account, your hills home directory shows in the Remote View on the right side: the directories are listed in the upper portion of the frame; the files are listed after the directories. Upload with SSH Page 2 of 6
You can upload files to your hills account by clicking the up arrow the button bar near the top of the window. on The default file mode automatically sets the transfer mode based on the file extension. If you prefer, you may select ASCII or BINARY transfer mode from the button bar. The Upload - Select Files dialog box overlays terminal window. Select the location of the source file(s) to upload from the Look in: menu: Click the down arrow on the right to see the menu. Select the drive location and the directory folder where the file is. Highlight the file to be uploaded. Click the Upload button or strike the Enter key. When the upload has completed, the Remote View shows the file successfully uploaded to the hills home directory. At the bottom of the terminal window, the Transfer View pane reports the details of the file transfer. Toggle to or from Transfer View by selecting Transfer from the View menu. Set File Permissions with SSH You may check or alter the file attributes (also called permissions). Highlight the name of the file whose attributes you want to check. Display the Permissions Page by using one of two methods: right-click the mouse on the filename and select Properties from the right-click menu OR highlight the name of the file, click on the word Operations in the menu bar, and select the Properties option in the Operations menu. There are two ways to alter the attributes on the Permissions Page for the file you ve selected: click the boxes to add or remove permissions for Group or Other Page 3 of 6
(Be careful not to eliminate your Owner rights.) OR type the numeric expression of the attributes in the Properties Mask box. For website development, it is recommended that you use: 644 for files (symbolic mode r w r r ) and 711 for directories (symbolic mode r w x x x) Click OK or strike the Enter key to set the permissions you ve requested. Download with SSH You may back up files saved in your hills directory by downloading them to disk or to your individual Windows account directory. 1) Highlight the name(s) of the files you want to download. 2) Select ASCII or Binary file transfer mode or let the Auto Select hdefault automatically select the transfer mode based on the file hextension. 3) Click on the download button on the button bar. The Download Select Folder dialog box appears. Click the dropdown menu arrow on the right side of the Look in: box to locate the destination folder for the downloaded file. Highlight the name of the file to download. Click the Download button or strike the Enter key. (The path selected does not appear in the Local View file list.) Page 4 of 6
If you want to verify a successful download: check the detail in the Transfer View pane; check the destination directory for the downloaded file; or open or execute the downloaded file. To check the destination directory from the File Transfer window, click the Local Name menu bar just above the Local View file list. Locate the destination directory by browsing the file path. The download destination is not required to show in the Local View file list for file transfer to occur. Logout of SSH Secure Shell Transfer Client DO NOT CLICK THE EXIT BUTTON. It closes the SSH Secure Shell File Transfer Client for FTP application but the Unix account remains connected. Go to the File menu by clicking on the word File on the menu bar. Select the Disconnect option from the File menu. Click the OK button to disconnect. Please note: To avoid accidental disconnection, the default selection in this dialog box is Cancel. Striking the Enter key will cancel the request to disconnect. The defaultsftp SSH Secure File Transfer terminal window goes gray (inactive) and the terminal status bar in the lower left corner of the window reads Not connected press Enter or Space to connect. Page 5 of 6
Go to the File menu once more. Select the Exit option. The File Transfer window closes. Page 6 of 6