Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can not telnet to my box
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Scuba_Boy
n00b
n00b


Joined: 10 Mar 2003
Posts: 12

PostPosted: Sun Mar 30, 2003 12:07 am    Post subject: can not telnet to my box Reply with quote

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
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Sun Mar 30, 2003 12:23 am    Post subject: Reply with quote

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
Code:
ifconfig

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
View user's profile Send private message
chemist
n00b
n00b


Joined: 18 Nov 2002
Posts: 6

PostPosted: Sun Mar 30, 2003 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum