LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 12-28-2004, 10:21 AM   #1
moejoe
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Remote CommandLine


hi

i wana set up my linux box so i can use PuTTy from a remote location to access the commandline on my linux box. what ports do i need to open on my router to do this?

Cheers

Moejoe
 
Old 12-28-2004, 10:40 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
if you want to have a secure connection (I suppose you want, if you access some account on the computer so..) then you need SSH-connection, the SecureSHell (no, not hell, but shell). SSH uses port 22 by default, as far as I know, so open that. also, you need to start sshd on the computer you want to have access to, and if your distribution didn't create the ssh keys (rsa and dsa) then it probably asks you to do so. but at least RedHat 9 did create the needed keys during post-install configuration, so if you don't already have sshd running (check: if "ps -e | grep sshd" without quotes prints you a line of a sshd-process, you're ok - if you didn't get anything, it's not running) then you should start it; the way depends on what distribution you're using.

so, to make it short:

1) start sshd on the computer you want to have the console connection in (if it's running already, this will do no harm)
2) if it wasn't running, and does not start because the keypairs are not created, create them - refer to "man ssh" without quotes
3) make sure port 22 can be used
4) use putty to connect to your computer's ip via ssh (or any ssh-capable program)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X!! Fowarding using commandline cvcrud Red Hat 3 06-26-2005 04:22 PM
using mcrypt from commandline Hano Linux - Security 5 12-11-2004 09:17 AM
want to use Variable as commandline clsonnt Programming 2 10-28-2004 11:55 AM
Commandline in SUSE Aiza Sarah Linux - Newbie 2 09-27-2004 05:29 AM
Commandline Handbook SloHands General 11 01-31-2003 01:38 PM


All times are GMT -5. The time now is 10:09 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration