remote access and file transfer getting files on and off bio-linux

16
Remote access and file transfer Getting files on and off Bio- Linux

Upload: bertram-barker

Post on 24-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Remote access and file transfer Getting files on and off Bio-Linux

Remote access and file transfer

Getting files on and off Bio-Linux

Page 2: Remote access and file transfer Getting files on and off Bio-Linux

Overview

Remote logins to Bio-Linux

Getting data from remote machines

Pushing data from Bio-Linux

Networked file systems and file-sharing

Page 3: Remote access and file transfer Getting files on and off Bio-Linux

Logging in remotely

There is only 1 way to access a Bio-Linux machine remotely.

Bio-Linux runs sshd, which supports Secure Shell connections. Secure Shell (SSH) is a safe version of something like “telnet”.

How you access Bio-Linux remotely using SSH depends on what system you are logging in from.

Page 4: Remote access and file transfer Getting files on and off Bio-Linux

SSH clients by platform

Windows: We recommend PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/). It is a free, lightweight and capable SSH client.

Mac Classic: MacSSH (http://pro.wanadoo.fr/chombier/)

Mac OSX: Built in ssh at the command line

Linux/Unix: OpenSSH (http://http://openssh.org/) is the Open Source ssh suite. It is installed on Bio-Linux by default.

Page 5: Remote access and file transfer Getting files on and off Bio-Linux

Working via SSH

Configuring a graphical SSH client is very easy

You will need a username

The IP address and/or hostname of the machine

Some clients make you specify the SSH port (22 by default)

If you want to use graphical applications over the ssh “tunnel” you will need to enable “X11 forwarding”

Page 6: Remote access and file transfer Getting files on and off Bio-Linux
Page 7: Remote access and file transfer Getting files on and off Bio-Linux
Page 8: Remote access and file transfer Getting files on and off Bio-Linux

Why use X11 forwarding?

It means you can log in and run your favourite graphical Bio-Linux applications on your Windows/Mac/Unix desktop.

But... I want a full Bio-Linux desktop to work with remotely!

Simple: Just log in via SSH with X11 forwarding turned on and type the following command:

gnome-session &

You will get a full interactive Gnome desktop on your machine! It will be just like being on the Bio-Linux machine (but slightly slower!)

Page 9: Remote access and file transfer Getting files on and off Bio-Linux

Command line SSH basics

Logging into a machine using a non-graphical SSH client is easy:

ssh [email protected]

To make sure X forwading is turned on with OpenSSH

ssh -x [email protected]

Page 10: Remote access and file transfer Getting files on and off Bio-Linux

Getting data from remote machines

Most likely you are familiar with FTP. Most people are familiar with graphical FTP clients.

Bio-Linux has a command line FTP client.

At a terminal just type:

ftp <hostname>

You will be prompted for a username and password.

Page 11: Remote access and file transfer Getting files on and off Bio-Linux

FTP basics

ls

bin

ascii

get

mget

put

mput

Page 12: Remote access and file transfer Getting files on and off Bio-Linux

sFTP

If the server supports it you should use sftp instead of FTP.

sFTP = secure FTP

sftp <username>@<hostname>

The rest of the commands are just like FTP

Relies on sshd.

Page 13: Remote access and file transfer Getting files on and off Bio-Linux

SCP

scp is the hard way of doing sftp ;)

scp <filename> <username>@<host>:

Can take wildcards.

Great for shunting single files around between Linux machines.

Relies on sshd.

Page 14: Remote access and file transfer Getting files on and off Bio-Linux

WinSCP

For getting files from Windows to Bio-Linux there is a great (free!) program called WinSCP

It looks just like a regular windows file manager.

You can “drag and drop” files to and from your Bio-Linux machine.

Handles SCP and SFTP transparently

http://winscp.sourceforge.net/eng/

Page 15: Remote access and file transfer Getting files on and off Bio-Linux
Page 16: Remote access and file transfer Getting files on and off Bio-Linux

Using networked resources

You may have shared drives at your place of work.

These may be NOVELL shares – A novell client is available for Linux so you can access these.

smbclient : allows you to access Windows Shares

NFS : Bio-Linux can be easily set up to receive NFS exports.

Ask us for advice on all of these!