Re: newbie security question
From: Konstantinos Peletidis (kpeletidis_at_dsl.pipex.spammers.must.go2jail.com)
Date: 06/26/04
- Next message: Raj.: "Cookies in Linux ? Anti-virus ? Firewall ?"
- Previous message: Gandalf Parker: "Re: newbie security question"
- In reply to: Gandalf Parker: "Re: newbie security question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 26 Jun 2004 18:35:25 +0100
On Sat, 26 Jun 2004 16:47:29 GMT
Gandalf Parker <gandalf@most.of.my.favorite.sites> wrote:
>
> If you are managing your machine by sitting at the keyboard, then you
> can turn off SSH (port 22). Its listening to see if someone wants to
> use the machine from the internet using secure shell. It IS the most
> recommended method of doing that, but if no one needs to get to the
> machine level from off the net then you should shut it off. If you are
> using your home machine to connect to this machine and do things, you
> probably need 22 and maybe 6000
>
> If you managing your machine completely from the command prompt
> instead of a pretty graphic windows menu thing, then you can turn off
> X-windows (port 6000). Actually you can probably still do xwindows at
> the keyboard and just shut off the part of it that says "I might want
> to do this coming in from the internet" but Im not sure how.
You don't need port 6000 even for remote X11 sessions, as long as you
are using ssh with X forwarding. Something like
$ ssh -2 -X -C -c blowfish user@hostname
allows you to login to the remote machine and launch X applications
there while receiving the graphical output on your local machine
(provided that you are running X11 on the local machine, of course).
For more information regarding the options of the above command read the
ssh man page.
If you want to play safe, you can start your X server(s) with the option
NOT to listen for connections, thereby port 6000 won't be open.
$ startx -- -nolisten tcp
Personally, I have added an alias in my .bashrc to save myself the extra
typing:
alias startx='startx -- -nolisten tcp'
HTH
-- Konstantinos Peletidis Electronic & Computer Engineer
- Next message: Raj.: "Cookies in Linux ? Anti-virus ? Firewall ?"
- Previous message: Gandalf Parker: "Re: newbie security question"
- In reply to: Gandalf Parker: "Re: newbie security question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|