![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows / Open Solaris dual boot problem. | syndex | SUN Solaris | 2 | 05-13-2008 06:10 AM |
| Solaris 10 /proc making filesystem full | run_time_error | SUN Solaris | 5 | 01-08-2008 07:16 AM |
| Making a new OS based on Solaris / OpenSolaris | Dinolinux | What's on Your Mind? | 1 | 01-24-2006 04:55 PM |
| DDD making problem | azazel11998 | High Level Programming | 0 | 03-10-2005 04:10 AM |
| Making Mozilla Playing M$ Windows Media | Dmitri-br | Linux | 2 | 02-19-2004 07:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Might be a permission problem, I know I had to do a "chmod 700" on the .ssh folder with FreeBSD
|
|||
| Google The UNIX and Linux Forums |