Remote access setup
Fred Roller
froller at tnclimited.com
Thu Jun 11 13:25:05 UTC 2009
On Tue, 2009-06-09 at 02:53 +0200, arnaud mezenga somaunn wrote:
> Hello everyone,
>
> I'm having a this case i want to solve:
> I got one central PC running jaunty that store everything i have
> (docs,music etc...). I actually want to setup a kind of remote access
> that will allow me to access the content of that pc when i'm far from
> home. Is there any application that can allow me to that (thinking of
> something like radmin on wan setup - if i'm right) then i'll store and
> browse the content of my home pc from anywhere in this world,through
> the internet. Is a VPN a right solution for doing that or just an
> additional fonction or stack to the global structure.
>
> Thanks for help
>
> PS. All of this must allow me get connected on the central home PC
> throught the internet
>
> --
> Sent from my mobile device
>
My solution was to install and use ssh. For security I did the
following.
sudo apt-get install ssh
vi /etc/network/interfaces
[snip]
# The primary network interface
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
# Since this is on the net change ssh listening port.
vi /etc/ssh/sshd_config
[snip]
# What ports, IPs and protocols we listen for
#Port 22 <------ add pound sign to rem out this line.
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
ListenAddress 192.168.1.100:225 <----- Add this line.
# I am assuming you know how to use vi, if not use any text editor as root.
sudo /etc/init.d/ssh restart
Once this is done set your router to forward to this new port (225 in this example) to your IP addy.
On your remote system simply click
Places->Connect to Server.
Service type = SSH
Server = [routable IP of your router] <--- Get this from your router status section or similar. (A static IP is best)
Port = 225 (or whatever you selected)
Folder = [I leave blank]
User Name = Your username
Add bookmark = checked (if you don't want to retype the above)
Bookmark name = server name
Click -->Connect
you should be prompted for a password and then see your server in a file manager. Looks like a lot but is quite easy.
--
Fred R.
www.fwrgallery.com
"Life is like Linux, simple. If you are fighting it, you are doing
something wrong."
More information about the ubuntu-users
mailing list