LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-23-2004, 08:57 AM   #1
NSFrankenstein
LQ Newbie
 
Registered: Sep 2004
Location: Boston, MA
Distribution: SuSE 9.1 Pro
Posts: 8

Rep: Reputation: 0
How do I logon to my linux machine remotely?


So, here's the situation:

I have my linux workstation at home and my linux laptop, which goes to my office with me. I would like to be able to logon to the workstation from my laptop in my office so that I can write/compile/run code on the actual workstation. I think I've seen this done before with vnc/telnet/ssh...does that sound right?

If someone could post a step-by-step for me or be able to explain it clearly that would be greatly appreciated! I'm still really new to linux and I'm learning as I go. Thanks for your patience and help...Cheers!
 
Old 09-23-2004, 09:28 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i think best way is ssh. if X is installed at both side, u can run X applications. but u must work at X windows at client side.
1- make sure ssh deamon works on server side. it is probably installed.
2- make sure no firewall blocks tcp 22 port, (by default ssh deamon listens to tcp 22)
3- login to server from client side:
$ssh ip_of_server -l username

take look at ssh man page
$man ssh
$man sshd

if u want to control your linux trou windows box, download putty http://www.chiark.greenend.org.uk/~s.../download.html

good luck.
 
Old 09-23-2004, 10:59 AM   #3
k3nn0n
LQ Newbie
 
Registered: Aug 2003
Location: Somewhere between silicone and silicon valley.
Distribution: OpenSUSE, Mint, Fedora, Ubuntu
Posts: 17

Rep: Reputation: 1
Along these same lines, I have ssh server running on a suse 8.0 enterprise box with X running. When I ssh to it from my fedora core 2 workstation and launch an X app it says that it cannot connect to the X server. I am logging in remotely as root. I am logged in locally as a normal user. The server is sitting at the X login screen. Does someone have to be logged in on the server for this to work?
 
Old 09-23-2004, 07:40 PM   #4
NSFrankenstein
LQ Newbie
 
Registered: Sep 2004
Location: Boston, MA
Distribution: SuSE 9.1 Pro
Posts: 8

Original Poster
Rep: Reputation: 0
k3...I have the same question. In what state should the server be in order for me to be able to log on to it remotely? Does it need to be logged in as a user? as root? sitting at the login screen? I'm doing this on Suse 9.1 Pro, but it shouldn't be too different. Thanks again for all the help! Cheers!
 
Old 09-24-2004, 01:36 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i can run X app trou ssh. server is redhat 8.0 with X. server works in runlevel 3. client is fedora 2. it works for MDK too. maybe there is a issue between suse and fedora.
 
Old 09-24-2004, 01:48 AM   #6
himanshu79
LQ Newbie
 
Registered: Nov 2003
Location: New Delhi, India
Distribution: redhat
Posts: 9

Rep: Reputation: 0
Quote:
Does someone have to be logged in on the server for this to work?
Not at all.
There is no need for someone to login on server to provide you a remote access.
I think you should login as a normal user using ssh and then do a su to switch to root.
In my case Red hat doesn't provide a remote login as root which might be due to some security reasons.
 
Old 09-24-2004, 02:27 PM   #7
red_dog
LQ Newbie
 
Registered: Aug 2004
Location: Michigan
Distribution: FC2-x86_64
Posts: 3

Rep: Reputation: 0
Once you enable ssh DO NOT forget to secure your home box by restricting ssh access in the firewall so that your box is accessible only from work IP address (IP address range if using DHCP).
 
Old 09-25-2004, 11:09 AM   #8
rnice
LQ Newbie
 
Registered: Sep 2004
Location: Maryland
Distribution: Red Hat 9
Posts: 13

Rep: Reputation: 0
vnc works really well...
just allow a script to run at boot... perhaps in rc.local.
run a man on vncserver and vncviewer to figure out how it works. You can also download tightVNC or realVNC that runs on windows, so you can use your linux box or windows box to remotely access whatever is running vncserver.
It's pretty cool when you get it down. I think there is an article at linux-mag.com that can really help you out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
how to access internet from a linux machine via a linux machine as gateway b0nd Linux - Newbie 5 03-21-2005 11:59 AM
How can connect to Linux remotely from a Windows machine? imsam Linux - Networking 2 07-27-2004 09:01 PM
Using SMB to copy files from one linux machine to second linux machine. coppersky Linux - Networking 9 06-24-2003 12:07 PM
need to run a server remotely from a windows machine klintonray Linux - Software 3 04-18-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration