LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Telnet from windows to Solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/telnet-from-windows-to-solaris-326220/)

zillah 05-23-2005 09:19 AM

Telnet from windows to Solaris
 
I was trying to telnet from my windows PC (OS win2003) to Solrais box for my friend (Intel Solaris V10) , by using putty ssh.

Both PCs in same LAN, I could not.

1- Do I need to enable telent on solaris box ?

2- IF access Solaris box (not through telent) , but normal access, Can I telent my self through this command:

Telent 127.0.0.1 ? It did not work with me.

jlliagre 05-23-2005 09:34 AM

Code:

svcs -l telnet
will show you if the telnet service is enabled (it should by default)
Code:

svcadm enable telnet
will enable it.

zillah 05-23-2005 09:36 AM

Thanks again

1- Do you think this command will work for both Solaris and Linux ?

2-
Quote:

Can I telent my self

jlliagre 05-23-2005 12:12 PM

1) no, this is Solaris 10 specific (as of today) and part of the new Service Management Facility.
2) sure, you can telnet localhost when the service is enabled.

katsal 05-24-2005 05:05 PM

Telnet
 
Hi.

Telnet service may not be enabled on your solaris box.

go into the /etc/inet directory and view the inetd.conf.
Within this file locate the line that begins with:

telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd

Make sure that this is not commented out....If it is uncommet this line, and run kill -HUP on the inetd process for the inetd daemon to re-read the configuration file.

Telnet facility should now work for you.

jlliagre 05-24-2005 05:37 PM

Hmm, the good old inetd.conf is obsoleted and no more used starting from Solaris 10, consequently neither is running an inetd process.

zillah 05-24-2005 11:24 PM

"svcs -l telnet " the output was:

fmri svc:/network/telnet:default
name Telnet server
enabled true########################### That mean it is enabled,,,,Am I right?
state online
next_state none
state_time Tue May 24 21:00:10 2005
restarter svc:/network/inetd:default

I tried to ping my self the out put was:

# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
login: root
Password:
Not on system console
Connection to 127.0.0.1 closed by foreign host.

I tried to telnet from windows client via putty I received this message:
login as: root
Using keyboard-interactive authentication
Password: (I entered password for root)
Access denied

jlliagre 05-25-2005 01:21 AM

Login as root with telnet is wrong !
If you insist doing it, edit /etc/default/login and comment out the line
CONSOLE=/dev/console

zillah 05-25-2005 01:47 AM

Quote:

Login as root with telnet is wrong !
If you still remember, I have got problem to login as normal user, I will try to solve this issue and let you know

jlliagre 05-25-2005 09:00 AM

Quote:

If you still remember, I have got problem to login as normal user
But not the same problem, this specific message: "Not on system console" is specific to unauthorized root access.
Normal users will log in.

zillah 05-25-2005 09:08 AM

Quote:

But not the same problem, this specific message: "Not on system console" is specific to unauthorized root access.
Did you mean that if the normal user can not login locally fro any reason (which is my case) , that will not affect his telnet login, if he tries to telent remotly ?

jlliagre 06-06-2005 03:56 PM

I'm only saying the "Not on system console" is only related to root login attempts.
Regular users may or may not be able to login for any reason, but will not get that specific message.

cderbyd 06-08-2005 08:00 PM

Hi,

I agree with "jlliagre"

May be you should try to install a more secure service like ssh.

Last error just apply when you try to connect as root user through Telnet.

Putty SSH by default try to connect to Port 22, this because SSH port. Maybe this is your
problem, beside the /etc/default/login file.

The port for Telnet must be 23.

Good luck!

consty 06-15-2005 11:05 AM

Telnet forbidden
 
Hi,
On Solaris 8, how can I deny a user to connect with telnet.
Thanks in advance

jlliagre 06-15-2005 02:31 PM

A way to do it would be to write a custom pam module that allow/deny access depending on rules, but the effort would be in my opinion worthless, you'd rather deny all users to connect with telnet by disabling the telnet service, and switch to ssh.


All times are GMT -5. The time now is 03:20 AM.