The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 10 /proc making filesystem full run_time_error SUN Solaris 18 06-10-2009 10:25 PM
Windows / Open Solaris dual boot problem. syndex SUN Solaris 2 05-13-2008 09:10 AM
Making a new OS based on Solaris / OpenSolaris Dinolinux What's on Your Mind? 1 01-24-2006 07:55 PM
DDD making problem azazel11998 High Level Programming 0 03-10-2005 07:10 AM
Making Mozilla Playing M$ Windows Media Dmitri-br Linux 2 02-19-2004 10:58 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-08-2008
girish.batra girish.batra is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 70
problem in making autossh between windows and solaris

Dear all

I am facing one problem which is related to enabling Autossh between windows and solaris machine. If suppose their are two servers, server A is having windows and server B is having Solaris.I install openssh server software for windows through sourceforge.net site. What my requirement is doing sftp from solaris to windows to transfer files from solaris to windows automatically through autossh without needing a password and it has to be done through root user. Firstly I created a Public/ private key pairs on solaris machine with giving blank password for passphrase , I use RSA1 algorithms which create identity and identity.pub file in /.ssh directory of the root user on solaris machine. Then I manually sftp the identity.pub file to /home/root/.ssh directory on windows server. I then I rename it to authorized_keys file.
After all this, when I log into solaris server as a root user then I sftp too windows as a root user, at that time it ask for the password also again.
Please tell me where I wen’t wrong. I Badly need a solution where it should not ask for the password of the root user on windows machine.

Kind regards
  #2 (permalink)  
Old 02-08-2008
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
Quote:
Originally Posted by girish.batra View Post
Dear all

I am facing one problem which is related to enabling Autossh between windows and solaris machine. If suppose their are two servers, server A is having windows and server B is having Solaris.I install openssh server software for windows through sourceforge.net site. What my requirement is doing sftp from solaris to windows to transfer files from solaris to windows automatically through autossh without needing a password and it has to be done through root user. Firstly I created a Public/ private key pairs on solaris machine with giving blank password for passphrase , I use RSA1 algorithms which create identity and identity.pub file in /.ssh directory of the root user on solaris machine. Then I manually sftp the identity.pub file to /home/root/.ssh directory on windows server. I then I rename it to authorized_keys file.
After all this, when I log into solaris server as a root user then I sftp too windows as a root user, at that time it ask for the password also again.
Please tell me where I wen’t wrong. I Badly need a solution where it should not ask for the password of the root user on windows machine.

Kind regards
Hi,
Most of the time, public key authentication is disabled by default (at least on most unix distrib) look for the config file of sshd (sshd_config hopefully) on your windows system then uncomment if needed the 3 lines related to public key authentication (RSAAuthentication yes, PubkeyAuthentication yes, etc ...)
Second, make sure you put the authorization keyfile in the right directory on unix its easy, its under the ".ssh" directory, on windows you should have a .ssh directory too on the root of your primary drive but im not really sure ...
Restart the sshd service on your windows and reconnect again, i hope that would do the trick
  #3 (permalink)  
Old 02-11-2008
girish.batra girish.batra is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 70
I triend what you said to me and after uncomenting

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

start the openssh service in windows but still i cann't able to do autossh between solaris 10 and windows as it still ask me for the password. after these changes even i tried to regenerate public and private keys again even then i still cann't able to do autossh.

I am showing the content of sshd_config file of windows as my requirement is to do sftp from solaris to window (openssh server)

# $OpenBSD: sshd_config,v 1.65 2003/08/28 12:54:34 markus Exp $

# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.

#Port 22
#Protocol 2,1
Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes

# The following setting overrides permission checks on host key files
# and directories. For security reasons set this to "yes" when running
# NT/W2K, NTFS and CYGWIN=ntsec.
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
# HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
IgnoreUserKnownHosts yes
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCreds yes

# Set this to 'yes' to enable PAM authentication (via challenge-response)
# and session processing. Depending on your PAM configuration, this may
# bypass the setting of 'PasswordAuthentication'
#UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
UsePrivilegeSeparation no
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
MaxStartups 10:30:60

# default banner path
Banner /etc/banner.txt

# override default of no subsystems
Subsystem sftp /usr/sbin/sftp-server


Is there any modification has to done in this sshd_config file then plz let me know
  #4 (permalink)  
Old 02-12-2008
girish.batra girish.batra is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 70
Please let me know also if I have to do change anything in /etc/ssh/ssh_config client side of ssh which is solaris 10.
  #5 (permalink)  
Old 02-19-2008
xinubhaskar xinubhaskar is offline
Registered User
  
 

Join Date: Jun 2002
Location: india
Posts: 6
please make changes into your solaris sshd_config

And restart sshd once more on the solaris server.

I mean to say to need to change in the sshd server file on the solaris server.
try ur luck man

Plus use this url to search more on it

<Linux> - Google Search
will help to find you some near answar.
  #6 (permalink)  
Old 02-29-2008
adderek adderek is offline
Registered User
  
 

Join Date: Sep 2007
Location: Poland
Posts: 99
I've wasted some time on this. Don't ask but use 'verbose' mode of ssh, then read it, trace it, then try to fix what is told to be wrong.
  #7 (permalink)  
Old 02-29-2008
flame_eagle flame_eagle is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 16
Might be a permission problem, I know I had to do a "chmod 700" on the .ssh folder with FreeBSD
Sponsored Links
Closed Thread

Bookmarks

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0