LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-10-2005, 03:09 AM   #16
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31

Yes, UserID has been created in the server. the output of xhost + is right.
You should register the server IP and hostname in /etc/hosts in your client pc.

Last edited by UltraSoul; 05-10-2005 at 03:10 AM.
 
Old 05-10-2005, 03:42 AM   #17
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
I have added the IP address of the server to C:\cygwin\etc\hosts at client PC (Winodws OS), but I have not added the hostname for the server, because I do not have one.

The Unix server gets unknown hostname when I checked /etc/hosts for it (Not client).


still I get this message:

$ xhost +
access control disabled, clients can connect from any host


Quote:
Yes, UserID has been created in the server
I will try to use 0 (zero) for root UserID If I can get "xhost +" syccessfully
 
Old 05-10-2005, 05:34 AM   #18
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
$ xhost +
access control disabled, clients can connect from any host


The message above is OK!

Have you succeeded to login into Remote server?
 
Old 05-10-2005, 09:56 AM   #19
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
Have you succeeded to login into Remote server?
No, I could not login to the server
 
Old 05-10-2005, 12:11 PM   #20
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Please confirm

sshd_config is for the server configuration. Please confirm your client pc can forward X11.

ssh_config is for the client ssh configuration. Please find it.
In my Redhat9, the ssh_config is located in /etc/ssh/ssh_config.
confirm the following line is uncommented.
Host *
ForwardX11 yes

And Is the server side ssh service started?
ps -ef | grep sshd

what is the output from the command above?

Last edited by UltraSoul; 05-10-2005 at 12:16 PM.
 
Old 05-10-2005, 01:45 PM   #21
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
ssh_config is for the client ssh configuration. Please find it.
I was trying to check if ssh has been installed on my client PC (winodws) or not, I tried these command from Cygwin black screen:


Administrator@dell ~
$where is ssh
INFO: Could not find files for the given pattern(s).

Administrator@dell ~
$whereis ssh
bash: whereis: command not found

Administrator@dell ~
$find / -name ssh -print
find: /cygdrive/c/Documents and Settings/Administrator/Favorites/ ????? ?????? ?
?????.url: No such file or directory
find: /cygdrive/c/Documents and Settings/Administrator/Favorites/BBCArabic.com
?????? ????????.url: No such file or directory
find: /cygdrive/c/Documents and Settings/Administrator/My Documents/University R
elated Materials/????? ????? ????? ????????? ??????????.htm: No such file or dir
ectory
find: /cygdrive/c/Documents and Settings/Administrator/My Documents/University R
elated Materials/????? ????? ????? ????????? ??????????_files: No such file or d
irectory
find: /cygdrive/c/Documents and Settings/Administrator/My Documents/???? ???????
? ?????? ?????: No such file or directory
find: /cygdrive/c/Microsoft UAM Volume/ICON?: No such file or directory
find: /cygdrive/c/pagefile.sys: No such file or directory


I relized that might "ssh" has not been installed,,,,Am I right?

Quote:
confirm the following line is uncommented.
Host *
ForwardX11 yes
You meant client here (But my case I can not do it, if ssh has not been installed correctly), and we have to do the same thing with the server
(
Quote:
I solaris 10, I found that the default sshd location is /etc/ssh/sshd_config.
Please check out and confirm the X11Forwarding is set to Yes.
)


Quote:
And Is the server side ssh service started?
ps -ef | grep sshd
I will check it when I will be back to the office

Last edited by zillah; 05-10-2005 at 01:57 PM.
 
Old 05-10-2005, 08:08 PM   #22
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Sorry for the confusion. In the case of client using UNIX-like OS ( linux, solaris), the client should config the ssh_config files. In the cygwin case the configuration can be ignored. In my lab I can use cygwin to access remote server but no need to configure the ssh_config.

In the server of my lab, ps -ef | grep sshd (in the server side) gave me the following message:
ultrasoul:~ 101 % ps -ef | grep sshd
root 363 1 0 May 06 ? 0:00 /usr/lib/ssh/sshd ( Do you just can see this line in your remote server? )
root 4352 3440 0 09:40:21 ? 0:00 /usr/local/sbin/sshd -R ( if you do not have these two lines, please enter "/usr/local/sbin/sshd". Note: The location of sshd command is depend your server sshd installation )
root 3440 1 0 22:18:32 ? 0:01 /usr/local/sbin/sshd
 
Old 05-11-2005, 01:09 AM   #23
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
root 363 1 0 May 06 ? 0:00 /usr/lib/ssh/sshd ( Do you just can see this line in your remote server? )
The output of "ps -ef | grep sshd" command was:

root 393 1 0 May 05? 0:00 /usr/lib/ssh/sshd


Quote:
Do you just can see this line in your remote server?
Yes I can see only this line on the remote server, as it has been proved above.

Quote:
root 4352 3440 0 09:40:21 ? 0:00 /usr/local/sbin/sshd -R ( if you do not have these two lines,
I do not have this line with option "R" at the end. I have got only the line that I mentioned above(without option R at the end).

Quote:
Note: The location of sshd command is depend your server sshd installation )
Yes the location is : "/usr/lib/ssh/sshd"

Last edited by zillah; 05-11-2005 at 01:11 AM.
 
Old 05-11-2005, 04:03 AM   #24
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Please input "/usr/local/sbin/sshd &". And see the output from ps -ef | grep sshd again.
 
Old 05-11-2005, 04:31 AM   #25
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
Please input "/usr/local/sbin/sshd &".
You meant (my case has got different location from yours) "usr/lib/ssh/sshd &"------did not you?

Quote:
And see the output from ps -ef | grep sshd again.
Output was:
#/usr/lib/ssh/ssdh &

3375

# ps -ef | grep sshd

root 393 1 0 May 05 ? 0:00 /usr/lib/ssh/sshd
 
Old 05-11-2005, 05:07 AM   #26
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Please find out the sshd program.

please run "find / -name sshd -print" in your server PC. What is the output for this command?

IN my sun sparc server:
# find / -name sshd -print
/usr/lib/ssh/sshd ( you just run this services )
/usr/local/sbin/sshd ( the command may be not implemented)
......


I am not sure if the ssh is correctlly installed in server side ) . Please access
the following site for more information .
http://www.sunfreeware.com/openssh8.html ( this site may be helpful. )

Last edited by UltraSoul; 05-11-2005 at 05:12 AM.
 
Old 05-11-2005, 05:39 AM   #27
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
please run "find / -name sshd -print" in your server PC. What is the output for this command?
This is the output:

# find / -name sshd -print
/usr/lib/ssh/sshd
/usr/sfw/lib/webmin/caldera/sshd
/usr/sfw/lib/webmin/sshd
/etc/webmin/sshd
/lib/svc/method/sshd


Quote:
I am not sure if the ssh is correctlly installed in server side )
Does the output above give any indecator that sshd is installed properly?

Last edited by zillah; 05-11-2005 at 05:54 AM.
 
Old 05-11-2005, 08:00 AM   #28
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Quote:
This is the output:
# find / -name sshd -print
/usr/lib/ssh/sshd
/usr/sfw/lib/webmin/caldera/sshd
/usr/sfw/lib/webmin/sshd
/etc/webmin/sshd
/lib/svc/method/sshd
In my server side, find / -name -sshd -print gives the message as follows:
MyServer:~ 105 % find / -name sshd -print
/usr/lib/ssh/sshd
/usr/sfw/lib/webmin/caldera/sshd
/usr/sfw/lib/webmin/sshd
/usr/local/doc/openssh/contrib/hpux/sshd
/usr/local/sbin/sshd ( You do not have this line )
/etc/webmin/sshd
/lib/svc/method/sshd

MyServer:~ 106 % pkginfo | grep sshd
system SUNWsshdr SSH Server, (Root)
system SUNWsshdu SSH Server, (Usr)
Myserver:~ 107 % pkginfo | grep openssh
application SMCossh4 openssh


I want to give you my install log with openssh.

<1> add the following packages:
# pkgadd -d openssh-3.8.1p1-sol8-sparc-local
# pkgadd -d openssl-0.9.7g-sol8-sparc-local
# pkgadd -d zlib-1.2.1-sol8-sparc-local
# pkgadd -d libgcc-3.3-sol8-sparc-local (if you don't already have gcc 3.3.2 installed)
# pkgadd -d tcp_wrappers-7.6-sol8-sparc-local (optional)

<2> Setting up the sshd user and the /var/empty directory ( implement these steps as root )
# mkdir /var/empty
# chown root:sys /var/empty
# chmod 755 /var/empty
# groupadd sshd
# useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd

/var/empty should not contain any files.
The default sshd_config file in /usr/local/etc has the last line

<3>Setting up tcp_wrappers ( if you want )
<4>Edit /etc/hosts.allow and /etc/hosts.deny
MyServer:~ 112 % less /etc/hosts.deny
sshd:ALL

Myserver:~ 113 % less /etc/hosts.allow
sshd:Your_IP1,Allowed IP address,192.168.0.19

<5> Installing ssh and sshd
This is the final step.
Each machine that you want to communicate with via the ssh client will need to have an sshd daemon running. But first, you need to run the following three lines to create the key information for the server machine. Again, make sure you have /usr/local/bin and /usr/local/sbin in your PATH. If you have been running sshd before and have keys in /usr/local/etc, running these commands will overwrite them. As root, enter

# ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
# ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ""
# ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ""

and wait until each is done - this may take a few minutes depending on the speed of your machine.
You might also want to study the /usr/local/etc/ssh_config and /usr/local/etc/sshd_config files to see if there is anything you want to configure differently.

<6> Please input " find / -name sshd -print"
maybe the output lines have the line of "/usr/local/sbin/sshd "
Please input from prompt as follows:
# /usr/local/sbin/sshd &
Then, your server is correctly configured and you can communicate with server by the IP addresses in /etc/host.allow file.

Please confirm this configuration.
Hope it to be helpful.
 
Old 02-25-2006, 02:57 AM   #29
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Yes, The userID is the one which has been created in the remote sunws by administor.
 
Old 02-25-2006, 09:44 AM   #30
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
Please confirm this configuration.
Sorry, but I have not got time to practice this, I will late you know.
 
  


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
XDMCP remote access to Solaris UltraSoul Solaris / OpenSolaris 1 10-17-2005 11:46 PM
Remote Shell from Linux to Solaris? Zombie13 Linux - Newbie 2 04-21-2005 12:10 AM
Issue Showmount command on remote Solaris 8 system njugs79 Solaris / OpenSolaris 2 04-16-2005 09:40 AM
remote Solaris Desktop sysxi Solaris / OpenSolaris 10 12-23-2004 05:54 AM
Winodws XP machines can't access Linux server lansman Linux - Networking 3 03-02-2003 10:19 AM

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

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