Difference between revisions of "(S)FTP"

From mi-linux
Jump to navigationJump to search
m (Speeling error)
 
(49 intermediate revisions by 9 users not shown)
Line 1: Line 1:
== How to transfer files to/from mi-linux (AKA (S)FTP) ==
+
== How to transfer files to/from mi-linux from a Windows based computer ==
  
== FTP or SFTP ==
+
The procedure for uploading files to mi-linux is different depending on whether you are connecting from the university or from home.
  
From within the university (any campus based computer) it is possible to make an FTP connection to mi-linux using FTP client software, however from the rest of the Internet, Secure FTP (SFTP) connections are required. It should be noted that secure FTP connections should always be used over non-secure FTP connections, as SFTP encrypts communication between client and server.
+
Note: Once uploaded, your files will be accessible here: http://mi-linux.wlv.ac.uk/~1021838/myfile.php
  
'''On Microsoft operating systems'''
+
Where:
 +
* '''1021838''' is your student number
 +
* '''myfile.php''' is the name of YOUR file.
  
Whilst Microsoft has built in support for FTP connections, it does not natively support SFTP communication.  Amongst the many FTP client softwares available for MS, [http://filezilla.sourceforge.net/ FileZilla] is a useful (S)FTP client that is freely available.
+
== Using Filezilla (works from home and university) ==
  
'''On Linux operating systems'''
+
From within the university (any campus based computer) it is possible to make an FTP connection to mi-linux using FTP client software, however from the rest of the Internet, '''Secure FTP (SFTP) connections are required'''
  
Support for secure and non-secure file transfer (S/FTP) is usually built in.
+
You may still choose to write your code in PSPad, but you will have to save your files locally, and then upload them separately, using a dedicated SFTP client application:
  
== HOW TO ==
+
1.  Download and install the freely available [http://sourceforge.net/project/showfiles.php?group_id=21558// Filezilla] FTP client, or use your preferred application. '''Note''': no need to do this in University Labs, as it is already installed.
  
1. Connect to mi-linux.wlv.ac.uk using your SFTP client - if using something like FileZilla, make sure the connection settings are "SFTP over SSH" and the port is set to "22"
+
2. Create a new connection using the following settings:
  
2. Drag and drop (if GUI) your files/directories
+
* Host: mi-linux.wlv.ac.uk
 +
* Servertype: SFTP - SSH File Transfer Protocol
 +
* Logontype: Normal
 +
* Username:  (Enter your student number here)
 +
* Password: (Enter your IT password here)
  
3. Make sure to drag them to the public_html folder if you want them to be WWW served
+
[[Image:filezilla.gif]]
  
4. If public_html, check/set file/directory permissions to make world-readable (see [[WWW]] publishing for more details)
+
== Using PSPad (works from University lab PCs only, not from home or from the uni wifi) ==
  
 +
You can connect to mi-linux using PSPad from within the university. PSPad is a freeware text editor that you can download via AppsAnywhere.
  
A similar tutorial aimed at students studying the CP1079 module can be found [https://mi-linux.wlv.ac.uk/wiki/index.php/SFTP_from_home_to_university here]
+
Simply click on the FTP tab on the left of the screen, and create a new connection with the following details:
 +
* Connection name: any name you like
 +
* Server: mi-linux.wlv.ac.uk
 +
* User name: your student number (or staff number if you are staff!)
 +
* Password: your normal password
 +
* Remote directory: public_html
 +
* You may also want to check the “keep connection” box, to stop your connection from timing out.
  
== Connect using PSPad by Jack Turner 0609572 ==
+
https://mi-linux.wlv.ac.uk/wiki-images/pspad-connection.png
You are able to connect to mi-linux using PSPad with the aid of a tunneling program. [http://www.appgate.com/index/products/mindterm/ Mind Term] is one.
 
  
Run the program by opening the command line (windows) and navigating to the directory you extracted the files to, then entering the following:
+
== Other (S)FTP clients ==
java -jar mindterm.jar
 
  
*You need to have Java installed on your system before-hand.
+
I have downloaded and tested a variety of FTP clients throughout my assignment. It is really your choice, but these are some of my favourites (by Cara Hughes 0615410):
  
Once the software is running, type '''mi-linuIf for some reason you want to work on windows but edit files on your linux storage area, for example working on a website hosted from public_html, and you can't be bothered to keep going to your ftp client and sending the files and waiting for then to send you can download SFTPDrive (http://www.expandrive.com/sftpdrive) and map yoour linux area as a windows drive. Then when you edit your file that is stored on your linux area in windows and save it you don't need to FTP it over to your linux storage. Useful if you are using an IDE. x.wlv.ac.uk:22''' and press enter.  It will ask you for an alias, just hit enter again, and it will ask you for your username, this being the username you use to log on to the university systems, enter it and press enter.  The same goes for your password, enter it and press enter when prompted.
+
* [http://www.smartftp.com/ SmartFTP]
 +
* [http://filezilla.sourceforge.net/ FileZilla]
 +
* [http://www.globalscape.com/cuteftp/ CuteFTP]
 +
* [https://addons.mozilla.org/en-US/firefox/addon/684 FireFTP] - FireFTP is a free, secure, cross-platform FTP client for Mozilla Firefox which provides easy and intuitive access to FTP servers.
  
You will see a message along the lines of "You are enrolled for Oracle". 
 
 
Select the Plugins menu, and click "FTP to SFTP Bridge".  Click enable on this menu as the default settings should be okay.
 
 
Now open PSPad and set up an ftp connection using the server 127.0.0.1
 
 
== Some very good (S)FTP clients by Cara Hughes 0615410 ==
 
 
I have downloaded and tested a variety of FTP clients throughout my assignment. It is really your choice, but these are some of my favourites:
 
* [http://www.smartftp.com/ SmartFTP]
 
* [http://filezilla.sourceforge.net/ FileZilla]
 
* [http://www.globalscape.com/cuteftp/ CuteFTP]
 
 
For those who use Linux:
 
For those who use Linux:
* [http://gftp.seul.org/ gFTP]
 
  
== A very good web host (also by Cara) ==
+
* [http://gftp.seul.org/ gFTP]<br>
  
The best way to practise the web development skills you learnt is to build a website by yourself. You could make an online web portfolio with your CV and past experiences, etc. You can design it and build it how you like, and you can decide what content goes on it too. Not only will it help you practise, an online portfolio is a great way to show to employers and customers, and give them an idea of who you are and what you do.
+
'''Edited by Nick Davies'''<br>
  
A web host is a company that allocates space on its server(s) to customers. Your site is stored on their server and you access it via FTP. Of course, there are lots of web hosts on the web, but my personal favourite is Byethost. I know quite a lot of you are into Open Source and free Linux OS, so if you are looking for a web host I recommend Byethost- it's free.
+
A good one I have used for a while, and still use now for '''Mac''' users:
  
* [http://byethost.com/ Byethost]
+
* [http://www.apple.com/downloads/macosx/internet_utilities/cyberduck.html Cyberduck]
  
== Mapping Your MI-Linux Area as a Windows Drive By Simon Watts (0506659) ==
+
FileZilla also works with Macs as well. (Although I don't recommend it myself, as I regularly get connection problems with it.)<br>
  
If for some reason you want to work on windows but edit files on your linux storage area, for example working on a website hosted from public_html, and you can't be bothered to keep going to your ftp client and sending the files and waiting for them to send you can download SFTPDrive (http://www.expandrive.com/sftpdrive) and map your linux area as a windows drive. Then when you edit your file that is stored on your linux area in windows and save it you don't need to FTP it over to your linux storage. Useful if you are using an IDE perhaps?.
+
If you plan on using FTP a lot for more than just the course, and don't mind shelling out a bit, [http://www.fivedetails.com/flow/ Flow] is a brilliant FTP client for '''Macs''' with the ability to create "droplets" which will upload files you drop onto it without even loading the main application. Unfortunately, it's $30, so it's not one for just the occasional FTP user. - Peter Shillito<br>

Latest revision as of 13:30, 11 February 2018

How to transfer files to/from mi-linux from a Windows based computer

The procedure for uploading files to mi-linux is different depending on whether you are connecting from the university or from home.

Note: Once uploaded, your files will be accessible here: http://mi-linux.wlv.ac.uk/~1021838/myfile.php

Where:

  • 1021838 is your student number
  • myfile.php is the name of YOUR file.

Using Filezilla (works from home and university)

From within the university (any campus based computer) it is possible to make an FTP connection to mi-linux using FTP client software, however from the rest of the Internet, Secure FTP (SFTP) connections are required.

You may still choose to write your code in PSPad, but you will have to save your files locally, and then upload them separately, using a dedicated SFTP client application:

1. Download and install the freely available Filezilla FTP client, or use your preferred application. Note: no need to do this in University Labs, as it is already installed.

2. Create a new connection using the following settings:

  • Host: mi-linux.wlv.ac.uk
  • Servertype: SFTP - SSH File Transfer Protocol
  • Logontype: Normal
  • Username: (Enter your student number here)
  • Password: (Enter your IT password here)

Filezilla.gif

Using PSPad (works from University lab PCs only, not from home or from the uni wifi)

You can connect to mi-linux using PSPad from within the university. PSPad is a freeware text editor that you can download via AppsAnywhere.

Simply click on the FTP tab on the left of the screen, and create a new connection with the following details:

  • Connection name: any name you like
  • Server: mi-linux.wlv.ac.uk
  • User name: your student number (or staff number if you are staff!)
  • Password: your normal password
  • Remote directory: public_html
  • You may also want to check the “keep connection” box, to stop your connection from timing out.

pspad-connection.png

Other (S)FTP clients

I have downloaded and tested a variety of FTP clients throughout my assignment. It is really your choice, but these are some of my favourites (by Cara Hughes 0615410):

  • SmartFTP
  • FileZilla
  • CuteFTP
  • FireFTP - FireFTP is a free, secure, cross-platform FTP client for Mozilla Firefox which provides easy and intuitive access to FTP servers.

For those who use Linux:

Edited by Nick Davies

A good one I have used for a while, and still use now for Mac users:

FileZilla also works with Macs as well. (Although I don't recommend it myself, as I regularly get connection problems with it.)

If you plan on using FTP a lot for more than just the course, and don't mind shelling out a bit, Flow is a brilliant FTP client for Macs with the ability to create "droplets" which will upload files you drop onto it without even loading the main application. Unfortunately, it's $30, so it's not one for just the occasional FTP user. - Peter Shillito