connect to my Ubuntu pc from another pc remotely?

Asked by Farmer

Hello.
I was wondering if there was a way to me access my Ubuntu pc remotely from a windows pc ( may work pc )??
I have heard about a program called Hamachi and was wondering if this would help with this?
Reason being, we have websense at my job and it blocks some of the most innocent and mundane sites, accessing my pc remotely would allow me to view things (not porn. LOL) and help keep me from getting bored and sleepy.
I have come here to resolve my issues with Ubuntu in the past and have always had my issues resolved, so any help would be greatly appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openssh Edit question
Assignee:
No assignee Edit question
Solved by:
Farmer
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

you could use ssh with x forwarding, your work system would need x server software on it too (if it is *nix based then this is already done. If it is windows you will need putty and also Xming to virtualise an X server)

You can then forward a port to the SSH service from your router, default is port 22 and also default is to enable x forwarding

on the server you will need to set a static IP to rule out IP lease expirations resulting in an IP change, as well as running:

sudo apt-get install openssh-server

Once installed and configured you can simply run:

putty -X username@routersWANip

and get a terminal, you can then launch your browser by typing:

opera
firefox
kazenchase
(whatever)

and it will be viewed on your work system but the process will be running on your home PC. SSH also provides 128Bit encyption so is secure.

Revision history for this message
Farmer (rpmoton) said :
#2

Hmmmmmmmmmm. I don't think I'll be able to convince networking to make my pc's ip a static ip, so that option is out for me.
But thanks for answering, you've given me other avenues to try.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

No, the static IP is for you home PC. Not your work PC

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

If you tell your router to port forward all reuests on port 22 / TCP to 192.168.0.50 port 22 / TCP this may work fine, if your home PC reaches its lease time and requests another IP it may not get the same IP, in which case the router will need reconfiguring every couple of days to accommodate the IP changes that may or may not occur, you set the PC to static IP and it will never change. You will also be able to connect to the system from ANYWHERE round the globe and run your app, distance and speed may be an issue but they will be runnable.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

I believe there is a java based VNC thing ( I hate VNC ) which you could also explore. All you need then is a web browser whic can connect.I have never done this before so am unsure of the details but I've seen people so it. I find VNC very bloated as the entire screen refresh is sent every update. If you run a regular VNC client (another option) then all communications are sent in plin unencrypted form, making them very susceptible to capture and interpretation. Using VNC over an SSH tunnel can give it a suitable level of security.

Revision history for this message
Farmer (rpmoton) said :
#6

thanks for breaking it down in further detail.
I will go home and give this a go and see what happens.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Its fun to setup, you'll learn a lot about networks.

Revision history for this message
benny (b3ny) said :
#8

Interesting to read actionparsnip answer about how to use ssh remote ubuntu desktop from XP.
But, I'm sorry I always found broken word inside instalasi:

benny@b3nY:~$ sudo apt-get install openssh-server
[sudo] password for benny:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  openssh-server: Depends: openssh-client (= 1:4.7p1-8ubuntu1) but 1:4.7p1-8ubuntu1.2 is to be installed
E: Broken packages

Oya, not clearly for me read your answer about remote ubuntu desktop with ssh, can you add more about how to...
I'm sorry my english - thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

sudo apt-get install openssh-client

first. This should then see what that says.

Revision history for this message
benny (b3ny) said :
#10

Yes, it client packed from ubuntu cd/red/32bit/7.10 and upgrade using update manager within ubuntu experiences:
I hv no problem remote XP from ubuntu using VNC and not remote ubuntu from XP, ya VNC is not free to have VNC server inside ubuntu
benny@b3nY:~$ sudo apt-get install samba-common
[sudo] password for benny:
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba-common is already the newest version.
The following packages were automatically installed and are no longer required:
  libotr2 libsilc-1.1-2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
benny@b3nY:~$ sudo apt-get install openssh-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-client is already the newest version.
The following packages were automatically installed and are no longer required:
  libotr2 libsilc-1.1-2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

You may want to run:

sudo apt-get --purge autoremove

Get rid of that packaing warning.

ok what is the output of:

ls -al /var/cache/apt/archives/

Thanks

Revision history for this message
hanadi (hjeweidi75) said :
#12

hi
please i want to connect from my pc having ubuntu to another pc having public id
on the other pc i have a user name and password when i log in to this pc i have to connect to another pc those two pc are on the same network
i installed SSh
and i wrote from the command prompt ssh username@ global ip of the computer i want to connect to
i asked me about the password i entered it
it gave me this :
The authenticity of host the global ip can't be established
are you sure you want to continue i wrote yes
it wrote :Permanently added the ip to (RSA) to the to the list of known hosts
the question is : i want to know if now i am connected to the pc ?
and how i could connect from it to another pc on the same network locally i know the ip of the other pc
please i will be glad if you could answer me as soon as possible

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

Yes, you need to accespt the ssh key which will then be used for encryption of all subsequent transmissions. You are connected, you simply need to accept the key