View previous topic :: View next topic |
Author |
Message |
Scuba_Boy n00b
Joined: 10 Mar 2003 Posts: 12
|
Posted: Sun Mar 30, 2003 12:07 am Post subject: can not telnet to my box |
|
|
I started sshd and it worked with no errors that I can see. When I try to Telnet over I get the following:
Could not open the connection to the host, on port 23
any help?
Thanks.. _________________ Scuba_Boy
One by one the penguins steal my sanity |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Sun Mar 30, 2003 12:23 am Post subject: |
|
|
ok. telnet is old and insecure. Don't use it.
ssh is like telnet on steroids wearing an exo-suit of power armour.
sshd runs an ssh server.
so instead of telnetting in you ssh in like this
Code: | ssh root@192.168.0.1 |
where the root part is who your trying to log in as (root in this case) and the 192.168.0.1 is the IP address of the system your logging into which you can get on the machine your trying to log into by doing
Make sure you have set the root passwd (if you are installing gentoo at this point) otherwise the password is still randomised and hence you don't know it and can't log in.
Hope this helps.
Puggy |
|
Back to top |
|
|
chemist n00b
Joined: 18 Nov 2002 Posts: 6
|
Posted: Sun Mar 30, 2003 7:43 pm Post subject: |
|
|
Like puggy said, you should use ssh instead.
But if you really want to use telnet, do this (as root):
* emerge xinetd netkit-telnetd
update /etc/xinetd.conf to suit your configuration (change only_from to contain all hosts you want to connect from, default is to allow localhost only)
go to /etc/xinetd.d
add a file called telnet-tcp with the following content:
Code: |
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
|
start/restart xinetd
Code: |
/etc/init.d/xinetd start
|
and possibly do
Code: |
rc-update add xinetd start
|
to make xinetd start each time you boot the system. |
|
Back to top |
|
|
|