LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-19-2007, 07:01 AM   #1
taothichtienmat
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
How to make a remote access


I just a newbie, i want to know ask how to config remote access like rlogin or telnet in Solaris 10 . Thanks
 
Old 05-19-2007, 07:04 AM   #2
hoanginlove81
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
The following example shows you how to use the rlogin command to log in to another system remotely. You can use the uname -n command to verify the name of the remote system.

$ rlogin host2
Last login: Mon Mar 6 16:22:12 from host1
Sun Microsystems Inc. SunOS 5.9 Generic February 2000
$ uname -n
host2
$ pwd
/export/home/user1
$ exit
Connection to host2 closed.
$

You can use the rlogin command with the -l option to specify a different user name for a remote login session.

The syntax for the rlogin -l command is:

rlogin -l username hostname

To log in as a different user, you can use the following information to identify and log in to the account:

* The host name
* The user name
* The password for the user on the remote host

The following example shows you how to log in remotely to the host2 system as another user, user2:

$ rlogin -l user2 host2
Password:
Last login: Mon Mar 6 16:36:35 from host2
Sun Microsystems Inc. SunOS 5.9 Generic February 2000
… (output truncated)
$ pwd
/export/home/user2
$ uname -n
host2
$ exit
Connection to host2 closed.
$

You use the rsh command to run a program on a remote system without having to log in to the remote system.

The syntax for the rsh command is:

rsh hostname command

Note: The syntax of the rsh command also allows you to use the system’s IP-Address on the command line instead of hostname.

The following example shows you how to use the rsh command as user1 to perform the ls command remotely on the host2 system.

$ rsh host2 ls

The following example shows how user1 runs the rsh command to perform the ls /var/mail command on the remote system named host2.

$ rsh host2 ls /var/mail

The output from these commands shows information from the host2 system.
Note: The rsh command works only if a .rhosts file exists for the user because the rsh command does not prompt for a password to authenticate new users.

If your system is not responding to your keyboard or to mouse input, the window system might be frozen. You can use the rlogin command to access your system remotely from another system. Then you can perform the pkill command to terminate the corrupted session.

The following example shows you how to use the rlogin command to terminate a process remotely on the host2 system.

$ rlogin host2
Password:
Last login: Fri Feb 04 16:50:30 from host1
Sun Microsystems Inc. SunOS 5.9 Generic February 2000
$ pkill shell

or

$ pkill -9 shell

You can use the telnet command to log in to a remote system and work in that environment.

The syntax for the telnet command is:

telnet hostname

The following example shows how to use the telnet command to connect to a remote system called host2.

$ telnet host2
Trying host2
Connected to host2
Escape character is ‘^]’.

SunOS 5.9

login: user2
Password:
Last login: Mon May 6 14:13:40 from host1
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
$ uname -n
host2
$ exit
Connection to hostname closed by foreign host.
$
 
Old 05-19-2007, 10:00 AM   #3
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:
Originally Posted by taothichtienmat
I just a newbie, i want to know ask how to config remote access like rlogin or telnet in Solaris 10.
These services are disabled by default on the latest Solaris 10 release (Secure by default). This is for a good reason as the passwords are transmitted in cleartext on the network. Rlogin has also other security issues. It is recommended to use ssh instead.

Should you really need to access the machine with these weak protocols, just enable their services with "svcadm enable telnet" or "svcadm enable rlogin".
 
  


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
remote access thoyyib Linux - Networking 1 03-18-2006 03:05 AM
remote access balajee Linux - Security 2 05-24-2005 11:30 PM
Remote Access canuck_barlow Linux - Newbie 6 03-23-2005 11:29 AM
Remote Access Kenster Red Hat 7 12-14-2003 04:01 AM
Remote Access ziegler Linux - General 6 05-02-2003 11:26 AM

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

All times are GMT -5. The time now is 04:54 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