Nov 21, 2009

Installing A SSH Server - Accessing your computer remotely

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Operating Systems > Linux

Installing A SSH Server - Accessing your computer remotely

pyost
Imagine this - you are at an important meeting, and need to show some spreadsheets to your boss, but you realise you have forgotten the files at home! There is no time to go back, since that would take you at least an hour, so what else can you do?

Why not just access your own computer from the Internet?

Remote desktop is a concept that allows you to control one computer from the other, and this has been used for some time. However, setting up such system can prove to be somewhat complicated. Luckily, if you are running Linux on your home desktop, it's doesn't have to be smile.gif

I'll start with one acronym - SSH. SSH stands for Secure Shell, which is a protocol regularly used by web masters who need to access their web server (ComputingHost has it in its offer, of course). But this doesn't mean you cannot use it on your own computer.

The main idea I will deal with here is installing a SSH server on your Linux machine, and accessing it from another. I have done this on Ubuntu 7.10, so this is what my instructions will revolve around. Nevertheless, I am sure you all realise that different Linux distributions aren't at all that different, so the process should be pretty much the same for everyone.

The first things you will need is a SSH server. The package you are looking for is called openssh-server. There are several ways you can install it - I have used Synaptic Package Manager. Once installed, the SSH server will listen at port 22 for incoming connections. If you are the only one who will use this server, it might be a good idea to change the port number. To do so, you need to edit the /etc/ssh/sshd_config file (what you are looking for will be near the top), and then restart the server: sudo /etc/init.d/ssh restart

Now, since we've got the server running the way we want to, we can connect to it - use whatever program you find the best. If you need to know your IP address, head over to http://www.whatismyip.com/.

Oh, wait! Not working? There is one thing that is usually the problem... Port forwarding. If you are using a router to connect to the Internet, you probably need to tell it what ports to open. Your router's address is usually 192.168.1.1, so go in there and allowing incoming connections at port XXXX (which you assigned to the SSH server).

If you still can't access it... There must be some other, more complicated problems. If you can - use it wisely wink.gif

 

 

 


Comment/Reply (w/o sign-up)

yordan
Of course, doing that way you open a ssh command-line access, it's not fully what we call a "remote desktop access".
Are you planning to go further on that way ? Unless being satisfied with the possibility of running Linux command-lines only ?

Comment/Reply (w/o sign-up)

xboxrulz
QUOTE (pyost @ Feb 21 2009, 11:49 AM) *
Imagine this - you are at an important meeting, and need to show some spreadsheets to your boss, but you realise you have forgotten the files at home! There is no time to go back, since that would take you at least an hour, so what else can you do?

Why not just access your own computer from the Internet?

Remote desktop is a concept that allows you to control one computer from the other, and this has been used for some time. However, setting up such system can prove to be somewhat complicated. Luckily, if you are running Linux on your home desktop, it's doesn't have to be smile.gif

I'll start with one acronym - SSH. SSH stands for Secure Shell, which is a protocol regularly used by web masters who need to access their web server (ComputingHost has it in its offer, of course). But this doesn't mean you cannot use it on your own computer.

The main idea I will deal with here is installing a SSH server on your Linux machine, and accessing it from another. I have done this on Ubuntu 7.10, so this is what my instructions will revolve around. Nevertheless, I am sure you all realise that different Linux distributions aren't at all that different, so the process should be pretty much the same for everyone.

The first things you will need is a SSH server. The package you are looking for is called openssh-server. There are several ways you can install it - I have used Synaptic Package Manager. Once installed, the SSH server will listen at port 22 for incoming connections. If you are the only one who will use this server, it might be a good idea to change the port number. To do so, you need to edit the /etc/ssh/sshd_config file (what you are looking for will be near the top), and then restart the server: sudo /etc/init.d/ssh restart

Now, since we've got the server running the way we want to, we can connect to it - use whatever program you find the best. If you need to know your IP address, head over to http://www.whatismyip.com/.

Oh, wait! Not working? There is one thing that is usually the problem... Port forwarding. If you are using a router to connect to the Internet, you probably need to tell it what ports to open. Your router's address is usually 192.168.1.1, so go in there and allowing incoming connections at port XXXX (which you assigned to the SSH server).

If you still can't access it... There must be some other, more complicated problems. If you can - use it wisely wink.gif



Yup, my server is completely managed via SSH. The difference between my setup and your setup is that I run FreeBSD 7.1. It's so easy to manage as a server. For FreeBSD, SSH is preinstalled, you just need to activate it and off you go.

deltatux

 

 

 


Comment/Reply (w/o sign-up)

pyost
QUOTE (yordan @ Feb 21 2009, 07:17 PM) *
Of course, doing that way you open a ssh command-line access, it's not fully what we call a "remote desktop access".
Are you planning to go further on that way ? Unless being satisfied with the possibility of running Linux command-lines only ?


Yes, I did forget to mention that this isn't actually "remote desktop" unsure.gif But you are not limited only to command-line access - you can also access the server (i.e. your computer) through many different programs, some of which offer a simple way to manipulate files.

Comment/Reply (w/o sign-up)

yordan
I agree. You can even get/put files using the ssh facility in FileZilla.

Comment/Reply (w/o sign-up)

xboxrulz
QUOTE (pyost @ Feb 21 2009, 05:06 PM) *
Yes, I did forget to mention that this isn't actually "remote desktop" unsure.gif But you are not limited only to command-line access - you can also access the server (i.e. your computer) through many different programs, some of which offer a simple way to manipulate files.



Actually, you can indeed have "remote desktop", it's called X forwarding, it's part of the SSH protocol. However, the implementation like almost everything in UNIX is not universal. So you need to do some research for your server. All you need is to install the X window system and a preferred desktop system and off you go, remote desktop!

xboxrulz

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords :

  1. Errors When Installing/booting
    From Live CD and actual installation (13)
  2. Simple Ubuntu Based Home File Server | For Newbies
    (1)
    This tutorial explains how to turn an old PC with additional hard disks into a simple home file
    server. The file server is intended for home use. The home file server is accessible by Windows and
    Linux computers in the home network. http://www.howtoforge.com/ubuntu-home-fileserver
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  3. Beginner's Guide To Installing Software In Ubuntu
    (2)
    Having problems installing something on your new Ubuntu operating system? This guide will help you
    understand. http://cutlersoftware.com/ubuntuinstall/ _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  4. Build Your Own Server
    (10)
    "Have you wanted a full-functionality web-server, media host, BitTorrent client and NAS box, all
    fully remote-controlled? Want to build it out of spare parts? Well then..." The guys at bit-tech
    have their Linux guru explain a complete networking solution built from old junk. Contains scripts,
    step-by-step instructions and lots of pics.
    http://www.bit-tech.net/bits/2007/06/05/bu...ur_own_server/1 _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  5. Do These Things Immediately After Installing Ubuntu
    (0)
    Article shows 13 things to do, programs to install immediately after installing Ubuntu 7.04 Feisty
    Fawn to make it rock. http://linuxondesktop.blogspot.com/2007/05...ubuntu-704.html
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  6. Liferea Feed Reader - Tutorial Installing
    (0)
    I create east tutorial of liferea long ago, but she has still not changed much, originally I wrote
    it in Spanish but I translate it to the English for this wonderful community, but they excuse that
    she does not express to me well is that I have certain errors with my English. Liferea is an
    aggregator for online news feeds. There are many other news readers available, but these others are
    not available for Linux or require many extra libraries to be installed. Liferea tries to fill this
    gap by creating a fast, easy to use, easy to install news aggregator for GTK/GNOME. ....
  7. Slackware 12
    Help Installing (1)
    I just finished downloading a 3.6GB Slackware 12 DVD. And now I'm trying to install it using
    vmware with 256MB guest memory and 8GB virtual HDD. My computer has 2GB memory and 320GB HDD. After
    booting from DVD image, the installation goes very slow. Anybody experience the same thing ? I
    never find any problem when installing Slackware 11. Is it because the new features of Slackware 12
    ? Thank you very much for your help........
  8. Installing Themes
    in ubuntu (6)
    Hi! Guys, I need your help in how to install themes in Linux. Must first say that am a newbie in
    Linux. The distribution am using is Ubuntu Linux 6.06 (Draper Drake?).Downloaded a theme from
    http://www.gnome-look.org/ .I downloaded a Mac OS theme
    (http://www.gnome-look.org/content/show.php?content=13548 ). They told me to copy it to /themes
    directory but I do not have any idea where this /theme folder is located. I searched for it and
    \user\themes (I am not sure?) but in that directory the paste button is inactive. People please
    help, in installing this theme. How do I....
  9. Fedora Directory Server
    Anybody uses it? (0)
    Some time ago Red Hat acquired Netscape's Directory Server and release it under open source
    licence renamed Fedora Directory Server. Does onybody use it, or simply try? What future of FDS do
    you predict? Give your opinion.....
  10. Irq
    How to change IRG numbers remotely (1)
    Does anybody know how to remotely change the IRQ number for peripheral devices? I found that IRQ
    number can be changed and reserved in BIOS. The problem is that after rebooting the remote computer
    there is an IRQ conflict btw network cards and other devices so the local network is not accessible
    and there is a need to reserve IRQ numbers for the adapter. ....
  11. Installing Mysql (fc5)
    yum install mysql (3)
    I'm having a problem with my Fedora Core 5 server. I need to install MySQL but it won't. I
    keep running the command under root: yum install mysql which should install all the clients but it
    won't. It gives me this: CODE # yum install mysql Loading "installonlyn" plugin Setting up
    Install Process Setting up repositories
    core                                                                
    updates                                                              
    extras                                                               Reading repository metad....
  12. Remote Connection
    How to remote connect to another computer (7)
    I have a server that is running a Debian installation of Linux. I want to be able to connect to
    this computer somehow, and be able to execute commands on it. Reason: My computer that runs Debian
    is running my Counter-Strike and TeamSpeak server. I want to be able to access the computer remotely
    to perform server maintenance tasks. My servers are working great. The computer is on a fast line
    and everything. How exactly do you set up this remote connection. I need to know: What ports to
    forward, if any, to my server since it rests behind a router. Can I access it thr....
  13. Installing KDE On FC5 w/ Gnome
    (5)
    hey guys! I'd like to install KDE on my FC5 system which currently just has GNOME. I guess all
    I'd have to do is open a terminal, su -, yum install kde & it should download & install then
    logout & log back in using KDE? Thanks! F....
  14. Help: Installing Device Drivers On Ubuntu
    Help installing ADSL driver on Ubuntu (4)
    I am new to Linux. I have just installed Ubuntu 5.10 on Pentium Xeon XSeries 226 server. I want to
    install driver for my existing Zyxel 630-11 ADSL modem to connect to the internet. I have also
    downloaded the driver from sourceforge in .tgz format. I don't know how to install this driver.
    If anyone know... please help me.....
  15. Help: Installing IE6 On FC5
    (12)
    hey, I need some help getting IE6 on FC5... the installer always quits saying that it can't
    download required things... anyway around this? On my last install, I got IE installed somehow, but
    it was only on the root user! Thanks! F....
  16. Fedora Core 5 Problems
    Installing packages (5)
    Whenever I try to install a package, I get the following error message in the shell: QUOTE
    Loading "installonlyn" plugin Setting up Install Process Setting up repositories updates Cannot find
    a valid baseurl for repo: updates Error: cannot find a valid baseurl for repo: updates Thanks
    for any help trying to fix this! F Edit: This was linked to an ISP problem that I verified with
    a friend on the same ISP. Apparently they were having some problems because I also couldn't
    access SourceForge or Photobucket. They've seem to have fixed the problem. F....
  17. CentOS: Test Server Reporting Errors!
    (5)
    Hello! I've got a test server launched using CentOS 4.3 Final and installed phpSysInfo on it to
    monitor it. Well, when I ran it as Debian, I never got the following errors on the output: QUOTE
    common_functions.php 294 file_exists(/proc/scsi/scsi) the file does not exist on your machine
    common_functions.php 294 file_exists(/proc/bus/usb/devices) the file does not exist on your
    machine common_functions.php 158 /bin/df /bin/df: `/proc': Permission denied /bin/df:
    `/sys': Permission denied /bin/df: `/dev/pts': Permission denied /bin/df: `/pr....
  18. Re-configure X Server
    (2)
    I re-installed a fresh copy of Debian on an extra hard drive (I'm not about to experience the
    troubles I had on a good system) and so I tried to get the Nvidia drivers re-installed. I don't
    remember the way I did it before, but this time was much easier except I have to reconfigure X. I
    see the Nvidia logo which means that they were installed, I just need to configure X to use them.
    What is the command line? I could have swarn there was a command line for it! Thanks (again)! F....
  19. Restarting Apache Server
    (16)
    I've worked with Apache long enough that I know (or at least I thought I knew) how to restart
    it. The problem: my terminal is filled with "command not found" and other errors and the such.
    httpd restart, right? NOPE! Command not found! apachectl restart, NOPE! Command not found! I'm
    out of ideas! I can't just keep physically re-booting the machine when I need JUST apache to
    restart! Thanks for any help, my system is Debain 3.1 r1. F....
  20. Binds ( Dns Server For Linux ) - How To Use It ?
    (3)
    I have BINDS installed on my Linux box and was wondering how you use it. For the fact that it is a
    DNS server, that is all I know. Otherwise, I'm lost! Thanks! F....
  21. Suse Linux Enterprise Server 9
    (5)
    I'm wondering if anyone has ever used SuSE Linux Enterprise Server 9 as a regular desktop Linux
    distro? I use mine as a local test server, but I'm thinking of installing it on my laptop (it
    has mobile features in it!) and dual booting with XP. Maybe not in the near future or anything. It
    doesn't come with software like OpenOffice.org like some other versions have (Xandros for
    example, and I think Fedora Core 4) and it is very limited except on server stuff. Well, I am new to
    Linux so I wouldn't exactly know what 'limited' was on a Linux system. ....
  22. Having Trouble Deciding Linux Distro For My Dad
    For my dad's office server (14)
    Well, my dad's office needs to upgrade it's primary server that's currently running
    Redhat 7.2, and I need recommend him a distro, but I'm stumped between Fedora and SUSE, wut do u
    guys think? If you want to recommend other distros, please tell me, and state the reason. Thanks!
    xboxrulz....
  23. Redhat 8.0 + Evolution + Ms Exchange Server
    (8)
    I have been forced into quite a conor at work these days and here is my problem. The project that I
    am working on requires Redhat 8.0 with as few updates as possible in order to support the baseline
    of the reviewed software. I would like to check my email while in Linux via the built in Evolution.
    I ran the setup for Evolution and there is no option for Microsoft Exchange server. I have done
    some digging around the net and have found that you need at least version 1.4.6 for the option to be
    present. My current version is 1.0.8-10. I have run up2date and it says tha....
  24. Help: Dns Server Auto Updataion
    (0)
    hi, I have Rhel 3 and clients of abt 100+ wht i did is, i manually enterd each host name and IP,
    wht i want to know? is there any other way (like in windows that each client will make an entry in
    to the DNS database) any one find me answer, reply me, sami......
  25. Linux Server Routing Failed!
    please help me? (0)
    The following is the settings on the linux server OS: Redhat 9 eth0: 192.168.1.98/24 eth1:
    192.168.10.1/24 route-eth0 file: 192.168.1.0/24 via 192.168.1.98 route-eth1 file: 192.168.10.0/24
    via 192.168.10.1 my own subnet is 192.168.10.0 internet accessing router internal port:
    192.168.1.99/24 problem: i want to use this linux server as a router between the real router and
    the subnet. all the internet request from my subnet will be forward to the real router. my client
    pc in the subnet has address :192.168.10.253 i can ping the 192.168.1.98 successfully from the cli....
  26. Play .avi Files In Redhat
    Need help in installing divX codecs... (6)
    The last few days have been spent in trying to get .avi files (Previously encoded using DivX codecs
    in Windows). I've a collection of movies that I've backed up as .avi files and I'm out
    of options trying one thing after another. So far: I have installed Helix player & Real Player; I
    have the DivX4Linux files but do not know how to install these (unlike configuring and 'make
    install' since there is no configure file and there are not instructions either). Also, Xine
    player (Xine-UI) which I've finally got working plays VCDs DVDs and Audio CD....
  27. Linux/unix For My Purpose
    Running Linux/Unix as dedicated server (2)
    I'm thinking to start my own server and have never used any Linux or Unix OS before. I'm
    looking for the easiest, least code/programming, most buttons-click-customizing server friendly to
    MySQL, Apache, webmail, pop3, smtp, videostreaming and all that Linux/Unix OS out there. It must be
    free and easy to download. All suggestions are welcome! Thank you.....
  28. How Can Samba Server Works With Firewall?
    (3)
    I just installed samba server. After i did the configuration, it works fine. However, if the
    firewall is turned on, it will not work. How can I get my samba server works with firewall turnned
    on???....
  29. Why Is Installing Redhat Linux Difficult?
    (8)
    I think the Cheaf defect of RedHat Linux is, It's too defucult to install, when compairing with
    Windows. It they could make it easy to istall Linux just as Lindows, I think it will be more popular....
  30. Linux Server & Cpanel Alternatives ?
    (7)
    Hi Due to the price of CPanel that will be out the window if I build a server, the OS I will be
    using is RedHat Linux as its free. Are there any CPanel alternatives that are compatible with this?
    Thanks....

    1. Looking for Installing, A, SSH, Server

See Also,

*SIMILAR VIDEOS*
Searching Video's for Installing, A, SSH, Server
advertisement



Installing A SSH Server - Accessing your computer remotely

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com