Difference between revisions of "Tutorials and How-tos/Access Server via SSH"

From BubbaWiki
Jump to navigation Jump to search
(WinSCP)
Line 1: Line 1:
== Putty ==
== Putty ==


A good Windows ssh client is Putty, available here: [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html www.chiark.greenend.org.uk/~sgtatham/putty/download.html].  
A good Windows ssh client is Putty, available here: [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html www.chiark.greenend.org.uk/~sgtatham/putty/download.html].  


#Download, install and start Putty.
#Download, install and start Putty.  
#In Putty, type: bubba as host name, and press "Open". If a question about keys appear, press "yes".  
#In Putty, type: bubba as host name, and press "Open". If a question about keys appear, press "yes".  
#At the prompt, log in using your normal Bubba user (root and admin aren't allowed to log in for security reasons). Note that you have to enable "ssh login" for that user, this is done in the web administration interface, click "users".
#At the prompt, log in using your normal Bubba user (root and admin aren't allowed to log in for security reasons). Note that you have to enable "ssh login" for that user, this is done in the web administration interface, click "users".


== Logged in via ssh ==
== Logged in via ssh ==


Now you have a prompt in the Linux shell, with user privileges. You may need root privileges to access some files, to get that, type <code>su</code> and use <code>excito</code> as password. Again, note that this gives full access to the entire file system, you now have the power to mess the entire installation up, requiring a full re-install. Be careful.
Now you have a prompt in the Linux shell, with user privileges. You may need root privileges to access some files, to get that, type <code>su</code> and use <code>excito</code> as password. Again, note that this gives full access to the entire file system, you now have the power to mess the entire installation up, requiring a full re-install. Be careful.  


== Examples ==
== Examples ==


Here are some basic examples.  
Here are some basic examples.  


To edit the Debian sources file, type:
To edit the Debian sources file, type:  
 
  nano /etc/apt/sources.list
  nano /etc/apt/sources.list
To view the mail error messages, type:
 
To view the mail error messages, type:  
 
  cat /var/log/mail.err
  cat /var/log/mail.err
<br>
<br>
== WinSCP  ==
For windows users that are a bit uncomfortable with navigating in the SSH console and dealing w&lt;span id="fck_dom_range_temp_1274708461587_507" /&gt;ith the vaiour Linux commands the WinSCP application is a killer.
[http://winscp.net/ http://winscp.net/]
It provides intuitive tree-navigation and comes with internal text editor.

Revision as of 13:42, 24 May 2010

Putty

A good Windows ssh client is Putty, available here: www.chiark.greenend.org.uk/~sgtatham/putty/download.html.

  1. Download, install and start Putty.
  2. In Putty, type: bubba as host name, and press "Open". If a question about keys appear, press "yes".
  3. At the prompt, log in using your normal Bubba user (root and admin aren't allowed to log in for security reasons). Note that you have to enable "ssh login" for that user, this is done in the web administration interface, click "users".

Logged in via ssh

Now you have a prompt in the Linux shell, with user privileges. You may need root privileges to access some files, to get that, type su and use excito as password. Again, note that this gives full access to the entire file system, you now have the power to mess the entire installation up, requiring a full re-install. Be careful.

Examples

Here are some basic examples.

To edit the Debian sources file, type:

nano /etc/apt/sources.list

To view the mail error messages, type:

cat /var/log/mail.err



WinSCP

For windows users that are a bit uncomfortable with navigating in the SSH console and dealing w<span id="fck_dom_range_temp_1274708461587_507" />ith the vaiour Linux commands the WinSCP application is a killer.

http://winscp.net/

It provides intuitive tree-navigation and comes with internal text editor.