SSH and Basic Commands

Similar documents
IIS, FTP Server and Windows

Using SSH Secure Shell Client for FTP

Remote Access to Unix Machines

Working With Your FTP Site

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

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

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

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

Quick Start Guide. Hosting Your Domain

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Secure Shell. The Protocol

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

MATLAB on EC2 Instructions Guide

From a Finder window choose Applications (shown circled in red) and then double click the Tether icon (shown circled in green).

Hallpass Instructions for Connecting to Mac with a Mac

Installing Microsoft Outlook on a Macintosh. This document explains how to download, install and configure Microsoft Outlook on a Macintosh.

Download and Install the Citrix Receiver for Mac/Linux

Centralized Mac Home Directories On Windows Servers: Using Windows To Serve The Mac

DocuPrint C3290 FS Features Setup Guide


OpenVPN over SSH tunneling

UW Computer Science and Engineering Starting UNIX X Clients From Windows XP. revised September Warren Jessop

Installation Guidelines (MySQL database & Archivists Toolkit client)

How to Use Remote Desktop over a Secure Connection (SSH)

Install FileZilla Client. Connecting to an FTP server

MySQL Quick Start Guide

Talk Internet User Guides Controlgate Administrative User Guide

Contents. This document contains the following sections:

Windows Clients and GoPrint Print Queues

Using Virtual Machines

Setup and configuration for Intelicode. SQL Server Express

Guest PC. for Mac OS X. User Guide. Version 1.6. Copyright Lismore Software Systems, Ltd. All rights reserved.

Installation Guide Command WorkStation 5.5 with Fiery Extended Applications 4.1

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

How to Setup and Connect to an FTP Server Using FileZilla. Part I: Setting up the server

Installing Novell Client Software (Windows 95/98)

How to install and set up the WinSCP software for Secure File Transfer

Installation Instruction STATISTICA Enterprise Server

VPN: Virtual Private Network Setup Instructions

Install and configure SSH server

Information & Communication Technologies FTP and GroupWise Archives Wilfrid Laurier University

Tutorial Guide to the IS Unix Service

Enabling Backups for Windows and MAC OS X

MySQL Quick Start Guide

Lab 8: Configuring Backups

1. Navigate to Control Panel and click on User Accounts and Family Safety. 2. Click on User Accounts

5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.

College of Marin Accounts Fall marin.edu Access,

Introduction to Operating Systems

Installation Instruction STATISTICA Enterprise Small Business

How to Tunnel Remote Desktop Through SSH on a Windows Computer

CASHNet Secure File Transfer Instructions

RSA SecurID Token User Guide February 12, 2015

XStream Remote Control: Configuring DCOM Connectivity

Installation Guide. Research Computing Team V1.9 RESTRICTED

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

Secure Global Desktop (SGD)

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

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Installing the Microsoft Network Driver Interface

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

1. Installation Overview

FireBLAST Marketing Solution v2

The Einstein Depot server

Publishing Your Website Using MS-FTP (for Windows Users)

Adafruit's Raspberry Pi Lesson 6. Using SSH

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

Setting Up One Search

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

How to Create and Send a Froogle Data Feed

Signiant Agent installation

ACTIVE DIRECTORY DEPLOYMENT

HWS Virtual Private Network Configuration and Setup Mac OS X 12/19/2006

Compuprint 4247 Serial Matrix Printers

How to configure your Desktop Computer and Mobile Devices post migrating to Microsoft Office 365

FUGU - SFTP FOR MACS- REFERENCE GUIDE

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

Send Video Recordings from the DVR to a FTP Server on your PC

Using Remote Desktop to access your Office Computer or Faculty Remote Desktop Server August, 2005 This document consists of two main parts and an

Using Remote Web Workplace Version 1.01

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

Fugu April An Open-Source Mac OS X Frontend for OpenSSH's sftp client. The Edible Part of the Blowfish

Overview. Remote access and file transfer. SSH clients by platform. Logging in remotely

Network Printing In Windows 95/98/ME

DP-313 Wireless Print Server

MultiSite Manager. User Guide

User Guide Version 3.0

File Manager User Guide

Client Configuration Guide

Introduction Connecting Via FTP Where do I upload my website? What to call your home page? Troubleshooting FTP...

enter the administrator user name and password for that domain.

Shellshock Security Patch for X86

Export & Backup Guide

Fasthosts Internet Parallels Plesk 10 Manual

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

How To Set Up A Backupassist For An Raspberry Netbook With A Data Host On A Nsync Server On A Usb 2 (Qnap) On A Netbook (Qnet) On An Usb 2 On A Cdnap (

1. After installing you can launch the program by clicking on the Start button and then select Programs, then WS_FTP LE, and then WS_FTP LE.

Click the "Connect" button. You should now see the following screen:

Transcription:

SSH and Basic Commands In this tutorial we'll introduce you to SSH - a tool that allows you to send remote commands to your Web server - and show you some simple UNIX commands to help you manage your website. Not all Web hosts give you SSH access to your Web server. This is often for security reasons, or because the host is running a non-unix server such as Windows. If in doubt, ask your Web hosting company if they support SSH. (I) What is SSH? SSH is a protocol that allows you to connect to a remote computer - for example, your Web server - and type commands to be carried out on that computer, such as moving and copying files, creating directories (folders), and running scripts. To talk to your Web server via SSH, you need an SSH client on your computer - see below - and you also need three pieces of information: Your Web server's IP address or hostname Often - but not always - the hostname is the same as your website's domain name. A username This is the username that you'll use to login via SSH. Often it's the same as your Web control panel or FTP username. A password This is the password that's associated with the above username. If you're not sure what to use for your hostname, username or password, check with your Web hosting company. (II) Connecting using an SSH client on Windows Using PuttySSH Client [No installation] There are many free and commercial SSH client programs available for Windows. A good, popular free client is PuTTY. To use it, simply download the putty.exe file, from my web site, then double-click putty.exe on your computer to run it. You'll see PuTTY's configuration dialog appear:

Host name you must enter : matrix.cs.gsu.edu Port: 22 Connection Type/Protocol : SSH Enter your Web server's IP address or hostname in the Host Name (or IP address) box, and click Open. The first time you connect to your Web server, you'll probably see a security alert dialog appear, warning you that PuTTY doesn't know anything about the machine ("host") that you're connecting to. Click Yes to add your server to PuTTY's cache and proceed with the connection. You'll now see a black terminal window appear, containing a "login as:" prompt: Enter your username, and press Enter. A "Password:" prompt appears; enter your password and, again, press Enter. If all goes well, you'll now be logged into your Web server. You'll probably see some sort of welcome message from your server, followed by a shell prompt:

A shell prompt is a small piece of text that lets you know the server is waiting for you to type something. Often the prompt ends in a dollar symbol ($). In our case, the shell prompt is "matt@bart:~$". This tells us that we're logged in with the username "matt", the computer's name is "bart", and we're currently in our home directory (~). (II) Connecting using an SSH client on Mac OS X or Linux If you use a Mac or run Linux, you're in luck, as Mac OS X and Linux both come with a built-in SSH client. To use it, you first need to open a terminal window. On Mac OS X, you can do this by double-clicking the Terminal application inside Applications/Utilities in the Finder. To open a terminal on Linux, consult your distribution's documentation; usually it's available via the applications menu. Once you have a terminal window open, type: ssh username@hostname where username is your SSH username, and hostname is the host name or IP address of your Web server. Then press Enter. If this is the first time you've tried to connect to this computer, you'll see a warning to the effect that the host couldn't be authenticated. Type yes and press Enter to confirm that you'd like to continue with the connection. After a few seconds you should see a "Password:" prompt appear; enter your password and press Enter once again. You should now see a welcome message and a shell prompt, indicating that you're logged into your Web server:

If you get an error message - such as "Access denied" - then your username or password is probably incorrect. As your Web hosting company for help. (IV) Connecting using an SSH client on Windows Using SSHClient [Installation Required] Install SSH Client using SSH client and SSH FTP lik in my web site. To connect to Matrix server, Click on Quick Connect button and it will display a login window. Enter host : matrix.cs.gsu.edu Username: yourusername Port : 22 And click CONNECT.

Then system will prompt for password. Enter your password and press ok. Password: yourpassword

Now you are logged into your account:

Now you can use unix commands to browse thorough files, create directories, create files using pico editor etc. [go through instructor web site to learn how to use these features] With this installation, you get access to SSH FTP(File Transfer) Client as well. You can use this to upload/download files to/from your computer and matrix.

(V)Some basic commands Congratulations! You've logged in to your Web server using SSH. You can now issue commands to the server by typing them in at the shell prompt: username@webserver:~$ and pressing Enter. Let's look at some simple Unix commands. The ls command ls is short for "list"; it lists all the files and directories in your current directory (called the working directory in Unix parlance). Type ls and press Enter, and you should see a listing appear in the terminal window: username@webserver:~$ ls myfile.txt myfile2.txt mysite.com The exact listing will, of course, depend on what files you have in your directory on the server! The cd command cd stands for "change directory", and it allows you to move into and out of directories, much like double-clicking folders on your PC. For example, if mysite.com listed above is the directory containing your website, you can move into the directory as follows: username@webserver:~$ cd mysite.com You can then do another ls to list the contents of the mysite.com directory: username@webserver:~/mysite.com$ ls cgi-bin htdocs logs To move back up a directory, use cd.. (".." means "the parent directory"). You'll then be back in your original directory: username@webserver:~/mysite.com$ cd.. username@webserver:~$ ls myfile.txt myfile2.txt mysite.com Notice how our shell prompt changes to reflect our current directory. Not all shell prompts do this; it depends how your server has been set up.

The pwd command Often it's useful to know your exact current directory. To find this out, type the command pwd (short for "print working directory") and press Enter. The computer displays the full path to the current directory you're working in: username@webserver:~$ pwd /home/users/username/ The more command The more command is a quick way to view the contents of a text file on your server. Just type more followed by the name of your file, and press Enter: username@webserver:~$ more myfile.txt Project Gutenberg's The Complete Works of Artemus Ward, Part 1 #1 of this seven part series by Charles Farrar Browne Copyright laws are changing all over the world, be sure to check the laws for your country before redistributing these files!!! Please take a look at the important information in this header. We encourage you to keep this file on your own disk, keeping an electronic path open for the next readers. Please do not remove this. This should be the first thing seen when anyone opens the book. Do not change or edit it without written permission. The words are carefully chosen to provide users with the information they --More--(16%) If your text file is more than one page long, you'll see a line such as: --More--(16%) at the bottom of the page, showing you how much of the text file you've seen. Press Enter to scroll through one line at a time, or Space to scroll one page at a time. To cancel the more command, press q. Depending on your server setup, you may also be able to use the arrow and Page Up/Page Down keys to scroll up and down through the text file. That should be enough to keep you going for a while! Once you're confident with using SSH and issuing commands, you can start to learn other useful commands for copying and moving files, testing CGI scripts, and working with directories. Take a look at our Useful UNIX commands reference for more info.

Reference: http://www.elated.com/articles/ssh-and-basic-commands/