Koozali.org: home of the SME Server

Still struggling with Telnet access as root

paulfoel

Still struggling with Telnet access as root
« on: February 05, 2004, 11:16:47 AM »
OK. I'm sure theres something I'm doing wrong here...

Telent access is enabled and I'm just doing telnet <IP address> from command line in DOS.

user name is root, password is same as admin.

Trouble is it gives me incorrect password. What am I doing wrong ?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Still struggling with Telnet access as root
« Reply #1 on: February 05, 2004, 12:54:37 PM »
What version of SME are you using?  Can you telnet using admin as user and not root?  I have a 5.5 system setup that I had telnet on and it worked for me.  I have sinced removed it and stated using ssh.  Is there a reason you need to use telnet and not ssh?  Many here would urge you to use SSH.

JB
......

paulfoel

Still struggling with Telnet access as root
« Reply #2 on: February 05, 2004, 03:59:56 PM »
Quote from: "mrjhb3"
What version of SME are you using?  Can you telnet using admin as user and not root?  I have a 5.5 system setup that I had telnet on and it worked for me.  I have sinced removed it and stated using ssh.  Is there a reason you need to use telnet and not ssh?  Many here would urge you to use SSH.

JB


Its v 5.6.

Whan I log in as admin the user interface startts up.

No particular reason for usiing telnet.

mike mattos

Still struggling with Telnet access as root
« Reply #3 on: February 05, 2004, 10:17:00 PM »
seems to me that in the server-manager, there are options to enable telnet, and also to limit it to local and global, also to DISABEL root on telnet,

Try putty or WinSCP2 , they are more secure and easier to use

Mike :lol:

JB

Still struggling with Telnet access as root
« Reply #4 on: February 06, 2004, 04:48:05 AM »
In 5.5 there was an option to enable telnet, in 5.6 that option is no longer there.  Mitel was urging the use of ssh and scp at that time.  But if you run these commands, it should enable you to telnet using root as long as you are on the local network.

/sbin/e-smith/config settype telnet service
/sbin/e-smith/config setprop telnet status enabled
/sbin/e-smith/config setprop telnet PermitRootLogin yes
/sbin/e-smith/config setprop telnet access private
/sbin/e-smith/expand-template /etc/xinetd.conf

you should now see in /etc/xinetd.conf a line for telnet

 /sbin/e-smith/expand-template /etc/hosts.allow   
 /etc/rc.d/init.d/xinetd restart


I just did this on my 6.0 box and it worked for me.

Good Luck,

JB

JB

Still struggling with Telnet access as root
« Reply #5 on: February 06, 2004, 04:50:14 AM »
In 5.5 there was an option to enable telnet, in 5.6 that option is no longer there.  Mitel was urging the use of ssh and scp at that time.  But if you run these commands, it should enable you to telnet using root as long as you are on the local network.

/sbin/e-smith/config settype telnet service
/sbin/e-smith/config setprop telnet status enabled
/sbin/e-smith/config setprop telnet PermitRootLogin yes
/sbin/e-smith/config setprop telnet access private
/sbin/e-smith/expand-template /etc/xinetd.conf

you should now see in /etc/xinetd.conf a line for telnet

 /sbin/e-smith/expand-template /etc/hosts.allow   
 /etc/rc.d/init.d/xinetd restart


I just did this on my 6.0 box and it worked for me.

Good Luck,

JB

aussie

telnet on SME6.0!
« Reply #6 on: February 11, 2004, 05:04:20 AM »
ive tried the notes for telnet on 5.6 but dont seem to work for 6.0.
Anyone got any ideas / information ?
TIA Rob
 :pint:

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Still struggling with Telnet access as root
« Reply #7 on: February 12, 2004, 05:16:33 AM »
aussie,

I just followed the instructions I gave above, on a newly loaded test box,  to enable telnet on 6.0 and it worked again for me.  What type of errors are you getting?  What does your configuration database look like for telnet?
......

aussie

Still struggling with Telnet access as root
« Reply #8 on: February 12, 2004, 05:53:55 AM »
Quote from: "mrjhb3"
aussie,

I just followed the instructions I gave above, on a newly loaded test box,  to enable telnet on 6.0 and it worked again for me.  What type of errors are you getting?  What does your configuration database look like for telnet?


THANKS for your response~
my /etc/xinetd.conf has a service telnet as follows:

{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnet
}

the /etc/hosts.allow says nothing about telnet other than
'telnetd' is not defined in the configuration database.


I got it to work by adding the line in hosts.allow
in.telnetd: ALL
but I guess the reconfiguration at some time will blow that away.
(I guess im more a kludger than anything eh?)
 
[/quote]

Tudor36

Still struggling with Telnet access as root
« Reply #9 on: February 12, 2004, 06:38:24 AM »
If you can, go to ssh.org and download a client and use it...Telnet is not secure and may not be allowing root in to it.

if you must use telnet create a user and change the users shell in the /etc/passwd file to /bin/bash then you can telnet in.  from that point type su and the root password and you are there but your password has just been sent in clear text so do not do this from the internet.

if you use the SSH option you can allow ssh to the world internet and use ssh anywhere.

Anonymous

Still struggling with Telnet access as root
« Reply #10 on: February 12, 2004, 07:20:43 AM »
Quote from: "Tudor36"
If you can, go to ssh.org and download a client and use it...Telnet is not secure and may not be allowing root in to it.

if you must use telnet create a user and change the users shell in the /etc/passwd file to /bin/bash then you can telnet in.  from that point type su and the root password and you are there but your password has just been sent in clear text so do not do this from the internet.

if you use the SSH option you can allow ssh to the world internet and use ssh anywhere.


Thanks for advice!
1. the telnet choice is NOT mine - the treminal emulator dictates it
2. I'll try the ssh.org in due course
3. I HAVE a user going to /bin/bash BUT
I wasn't even getting the login prompt! until I kludged it per my reply above.
regards to All for the healthy forum!
Rob