Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
$
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.