Accessing shell servers over SSH: Difference between revisions

(Created page with "<p>Users can access the ULYSSIS servers through two machines: <code>ssh1.ulyssis.org</code> and <code>ssh2.ulyssis.org</code>. Both of them run Linux. You can run commands on ...")
 
No edit summary
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<p>Users can access the ULYSSIS servers through two machines: <code>ssh1.ulyssis.org</code> and <code>ssh2.ulyssis.org</code>. Both of them run Linux. You can run commands on these servers or use them to access the files on your ULYSSIS account. The servers can only be accessed trough SSH, not through FTP or any other protocol.</p>
Users can access the ULYSSIS servers through two machines: <code>ssh1.ulyssis.org</code> and <code>ssh2.ulyssis.org</code>. Both of them run Linux. You can run commands on these servers or use them to access the files on your ULYSSIS account. The servers can only be accessed trough SSH, not through FTP or any other protocol.


<h2>Running commands</h2>
=Running commands=


To run a command on the shell servers, you will need to connect to them using a terminal. Our servers do not support a full graphical interface.
To run a command on the shell servers, you will need to connect to them using a terminal. Our servers do not support a full graphical interface.


<h3>Linux</h3>
==Linux==


On Linux, you can just open a terminal and connect to the servers by using one of the following commands (with <code>username</code> your username):
On Linux, you can just open a terminal and connect to the servers by using one of the following commands (with <code>username</code> your username):


<p><code>ssh username@ssh1.ulyssis.org</code></p>
<code>ssh username@ssh1.ulyssis.org</code><br />
<p><code>ssh username@ssh2.ulyssis.org</code></p>
<code>ssh username@ssh2.ulyssis.org</code>


<p>Enter your password and you're connected. </p>
Enter your password and you're connected.


<p>By doing this, the terminal will now act as a terminal on the remote server. To disconnect, type <code>logout</code>, <code>exit</code> or use Ctrl+D.</p>
By doing this, the terminal will now act as a terminal on the remote server. To disconnect, type <code>logout</code>, <code>exit</code> or use Ctrl+D.


<h3>Windows</h3>
==Windows==


Windows doesn't support native terminals, so you will have to download a program first. A good option is [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty], which is completely free and doesn't require any installation. Just download it and run the .exe file. The parameters:  
Windows doesn't support native terminals, so you will have to download a program first. A good option is [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty], which is completely free and doesn't require any installation. Just download it and run the .exe file. The parameters:  
<ul>
*Host name: ssh1.ulyssis.org or ssh2.ulyssis.org
<li>Host name: ssh1.ulyssis.org or ssh2.ulyssis.org</li>
*Protocol: SSH
<li>Protocol: SSH</li>
*Port: 22 (should be set automatically)
<li>Port: 22 (should be set automatically)</li>
</ul>


<p>You can save these options for later on.</p>
You can save these options for later on.


<p>Next, you will be asked to give your password.</p>
Next, you will be asked to give your password.


<p>Doing all this will open a terminal to the remote server which can be used the same way as a Linux terminal. To disconnect, type <code>logout</code>, <code>exit</code> or use Ctrl+D.</p>
Doing all this will open a terminal to the remote server which can be used the same way as a Linux terminal. To disconnect, type <code>logout</code>, <code>exit</code> or use Ctrl+D.


<p>More information about Putty can be found at http://the.earth.li/~sgtatham/putty/0.60/htmldoc/.
More information about Putty can be found at http://the.earth.li/~sgtatham/putty/0.60/htmldoc/.


<h3> Mac </h3>
==Mac==


On Mac, you can just open Terminal.
On Mac, you can just open Terminal.
Line 41: Line 39:
You can now connect to the servers by using one of the following commands (with <code>username</code> your username):
You can now connect to the servers by using one of the following commands (with <code>username</code> your username):


<p><code>ssh username@ssh1.ulyssis.org</code></p>
<code>ssh username@ssh1.ulyssis.org</code><br />
<p><code>ssh username@ssh2.ulyssis.org</code></p>
<code>ssh username@ssh2.ulyssis.org</code>


<p>Enter your password and you're connected. </p>
Enter your password and you're connected.


<p>By doing this, the terminal will now act as a terminal on the remote server. To disconnect, type <code>logout</code>, <code>exit</code> or use ctrl+D.</p>
By doing this, the terminal will now act as a terminal on the remote server. To disconnect, type <code>logout</code>, <code>exit</code> or use ctrl+D.


<h3>Useful ideas</h3>
==Useful ideas==


Here are some useful ideas about what you could do with your shell server access:
Here are some useful ideas about what you could do with your shell server access:
<ul>
*[[Accessing your files]]
<li><a href="/docs/fetch-your-kuleuven-mail-in-gmail">Fetch your K.U.Leuven student mail in your Gmail account.</a></li>
*[[Fetch your KU Leuven email into another email address]]
<li>Run an IRC client in a screen so you don't miss a thing.</li>
*[[ULYSSIS public IRC]]
</ul>


<h3>Useful commands</h3>
==Useful commands==
Some useful commands can be found <a href="http://ulyssis.be/docs/useful-linux-commands">here</a>.
Some useful commands can be found [[Useful Linux Commands|here]].
 
<h2>Accessing your files</h2>
 
<p>Next to running commands, you can also use the shell servers to access your files. There are several methods to do this, some graphical, some not. The former definitely are the easiest option to go for.</p>
 
<p>On the server, your files are located in <code>/home/group/username/</code>. For a normal user with username <code>username/</code> this will be <code>/home/user/username/</code>, for an organisation with username <code>organisation/</code> this will be <code>/home/org/organisation/</code> etc.</p>
 
<h3>Graphical methods</h3>
 
<h4> Linux </h4>
 
Linux normally gives you the option to connect to a server graphically. On Ubuntu, in the "Places" menu, choose "Connect to server." using the following options:
<ul>
<li>Service type: SSH</li>
<li>Server: ssh1.ulyssis.org or ssh2.ulyssis.org</li>
<li>Port: you can leave this blank</li>
<li>Folder: your home folder as described above (this is optional, this will save you clicking to your home folder)</li>
</ul>
 
This will open up a file browser connected to the remote server. Here, you can create new files, delete files, upload files (by copying or dragging them in the file browser), download files (by copying or dragging them from the file browser), change file rights etc.
 
<h4> Windows </h4>
 
Windows doesn't support native remote file browsers, so you will have to download a program first. A good option is [https://filezilla-project.org/ FileZilla], which is completely free. Download it, install it and run it. The parameters:
<ul>
<li>Dropdown menu: SFTP (SSH File Transfer Protocol)</li>
<li>Server: ssh1.ulyssis.org or ssh2.ulyssis.org</li>
<li>Port: you can leave the default value</li>
<li>Username: your username</li>
<li>Password: your password</li>
</ul>
 
<h4> Mac </h4>
 
Download the free and open source program [http://cyberduck.ch/ Cyberduck]
 
Follow the installations instructions and afterwards open Cyberduck in your Applications folder.
Click on 'Open Connection' in the left top corner.
 
<ul>
<li>Dropdown menu: SFTP (SSH File Transfer Protocol)</li>
<li>Server: ssh1.ulyssis.org or ssh2.ulyssis.org</li>
<li>Port: you can leave the default value</li>
<li>Username: your username</li>
<li>Password: your password</li>
</ul>
 
Click on 'Connect' and you're done.
By dragging and dropping you can manipulate files from and to your Mac.
 
<h3>Non-graphical methods</h3>
 
<p>You can also use a terminal (on Linux) or Putty (on Windows) to access your files. Connect to the server as described above, and use commands as <code>cd</code>, <code>ls</code>, <code>mkdir</code>, <code>rm</code>, <code>nano</code> or <code>chmod</code> to manage your files.
You can also use <code>scp</code> (secure copy) to copy files from and to the servers (don't use <code>ssh</code> first). For example, to copy a file called <code>file.txt</code> to your home dir on the server, use (with <code>username</code> your username and <code>/home/user/username</code> your home dir as described above): </p>
 
<code>scp file.txt username@ssh1.ulyssis.org:/home/user/username
</code>
 
For other examples and more info, see http://www.hypexr.org/linux_scp_help.php.

Revision as of 13:00, 10 May 2014

Users can access the ULYSSIS servers through two machines: ssh1.ulyssis.org and ssh2.ulyssis.org. Both of them run Linux. You can run commands on these servers or use them to access the files on your ULYSSIS account. The servers can only be accessed trough SSH, not through FTP or any other protocol.

Running commands

To run a command on the shell servers, you will need to connect to them using a terminal. Our servers do not support a full graphical interface.

Linux

On Linux, you can just open a terminal and connect to the servers by using one of the following commands (with username your username):

ssh username@ssh1.ulyssis.org
ssh username@ssh2.ulyssis.org

Enter your password and you're connected.

By doing this, the terminal will now act as a terminal on the remote server. To disconnect, type logout, exit or use Ctrl+D.

Windows

Windows doesn't support native terminals, so you will have to download a program first. A good option is Putty, which is completely free and doesn't require any installation. Just download it and run the .exe file. The parameters:

  • Host name: ssh1.ulyssis.org or ssh2.ulyssis.org
  • Protocol: SSH
  • Port: 22 (should be set automatically)

You can save these options for later on.

Next, you will be asked to give your password.

Doing all this will open a terminal to the remote server which can be used the same way as a Linux terminal. To disconnect, type logout, exit or use Ctrl+D.

More information about Putty can be found at http://the.earth.li/~sgtatham/putty/0.60/htmldoc/.

Mac

On Mac, you can just open Terminal. This application can be found in the Utilities folder within your Application folder. If you don't find it there, you can use Spotlight to find it.

You can now connect to the servers by using one of the following commands (with username your username):

ssh username@ssh1.ulyssis.org
ssh username@ssh2.ulyssis.org

Enter your password and you're connected.

By doing this, the terminal will now act as a terminal on the remote server. To disconnect, type logout, exit or use ctrl+D.

Useful ideas

Here are some useful ideas about what you could do with your shell server access:

Useful commands

Some useful commands can be found here.