LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-23-2005, 09:19 AM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 536

Rep: Reputation: 30
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.
 
Old 05-23-2005, 09:34 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Code:
svcs -l telnet
will show you if the telnet service is enabled (it should by default)
Code:
svcadm enable telnet
will enable it.
 
Old 05-23-2005, 09:36 AM   #3
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Thanks again

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

2-
Quote:
Can I telent my self

Last edited by zillah; 05-23-2005 at 09:38 AM.
 
Old 05-23-2005, 12:12 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 05-24-2005, 05:05 PM   #5
katsal
LQ Newbie
 
Registered: Aug 2003
Location: Australia
Distribution: Red Hat Linux
Posts: 7

Rep: Reputation: 0
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.
 
Old 05-24-2005, 05:37 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Hmm, the good old inetd.conf is obsoleted and no more used starting from Solaris 10, consequently neither is running an inetd process.
 
Old 05-24-2005, 11:24 PM   #7
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
"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
 
Old 05-25-2005, 01:21 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Login as root with telnet is wrong !
If you insist doing it, edit /etc/default/login and comment out the line
CONSOLE=/dev/console
 
Old 05-25-2005, 01:47 AM   #9
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
Old 05-25-2005, 09:00 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 05-25-2005, 09:08 AM   #11
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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 ?
 
Old 06-06-2005, 03:56 PM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-08-2005, 08:00 PM   #13
cderbyd
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
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!
 
Old 06-15-2005, 11:05 AM   #14
consty
Member
 
Registered: Feb 2004
Location: Douala-Cameroun
Distribution: RedHAt 9 ES
Posts: 85

Rep: Reputation: 15
Telnet forbidden

Hi,
On Solaris 8, how can I deny a user to connect with telnet.
Thanks in advance
 
Old 06-15-2005, 02:31 PM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet to solaris machine from windows mjunaidy Solaris / OpenSolaris 2 08-30-2005 06:17 AM
Windows and FC3 and Solaris---and only Solaris boot error message zillah Linux - Laptop and Netbook 1 07-07-2005 10:17 PM
telnet problem- solaris to linux jns_306 Linux - Networking 3 03-09-2004 04:47 AM
Solaris won't connect via telnet to linux 8.0 sainty Linux - Networking 1 11-25-2003 03:34 AM
telnet and ssh on Solaris 9 Shin Takeshita Solaris / OpenSolaris 6 08-28-2003 08:24 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration