SunOS 5.8 sftp-BatchMode Problem


 
Thread Tools Search this Thread
Operating Systems Solaris SunOS 5.8 sftp-BatchMode Problem
# 1  
Old 03-24-2008
SunOS 5.8 sftp-BatchMode Problem

Hi Gurus

I have to connect from a SunOS 5.10 to a 5.8 using sftp in BatchMode. For this, I have generated a Public-Key (ssh-keygen -b 1024 -P "" -t dsa) on the 5.10 and saved it in ~remote-user/.ssh/authorized-keys on the 5.8.

Then, running either one of ssh or sftp, it asks for the remote-user's password!!

For your added information, as you might already know, the above procedure works fine when going from 5.10 to 5.10.

Can you please tell me what am I missing here?
With my greatest appreciations,
unilover
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with SFTP...

Hi, Here is my problem::confused: Daily my ETL process will create 4 (Four) Flatfiles in unix box. Upon creation of the flatfiles, I need to do "SFTP" the files to a "Remote Server". Sometimes While doing SFTP, the files get trucated due to it's size. Now I would like to design a Korn... (3 Replies)
Discussion started by: npk2210
3 Replies

2. Red Hat

Spacewalk. Problem with adding SunOS system

Hello i tryed add SunOS system to Spacewalk and see this error: # cat /etc/release Solaris 10 10/08 s10s_u6wos_07b SPARC Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. ... (1 Reply)
Discussion started by: jess_t03
1 Replies

3. UNIX for Dummies Questions & Answers

SunOs problem running crontab -e

Hi, Whenever I run crontab -e from my remote terminal logged onto a SunOS 5.6 machine I get this: root@beauvert:~> crontab -e 3495 ----- I think I have to set the terminal/editor. These are my environment variables: root@beauvert:~> set EDITOR vi PATH ... (5 Replies)
Discussion started by: mojoman
5 Replies

4. Shell Programming and Scripting

Sorting problem (SunOS 5.9 / KSH).

Hi, Can someone tell me why the "LargeFile" is coming first before the smaller files. Is there any way to list the files based on size column. ls -g| sort -k 4 -rw-r--r-- 1 user 6117910528 Apr 28 15:04 LargeFile -rw-r--r-- 1 user 6136832 May 30 07:23 my_20080530.tar -rw-r--r-- ... (2 Replies)
Discussion started by: kesari
2 Replies

5. UNIX for Dummies Questions & Answers

BatchMode issue

Hello All, I have an issue with sftp in BatchMode option. I am using the below command to sftp a file in ssh2 from a script. sftp -o BatchMode=yes userid@servername <<EOF cd /ftp/cds put quotes.csv quit EOF But the connection doesnt returns back from sftp and it just hangs in the... (3 Replies)
Discussion started by: kotasateesh
3 Replies

6. Shell Programming and Scripting

sftp BatchMode issue

Hello All, I have a issue with the below script that i am using to sftp a file. sftp -o BatchMode=yes $sftpLogin <<EOF cd /ftp/cds get cdstesting.csv quit EOF When i use this, the connetion establishes and the connections doesnt returns from and hangs in the connecting mode. I think... (0 Replies)
Discussion started by: kotasateesh
0 Replies

7. Shell Programming and Scripting

sftp problem

Hi, I have a folder ABC. I have sftp executing from this folder successfully to other servers using keys which avoids passowrd prompt. The permissions for the folder are only for user.ie drwx------ But i need another id to access my folder and execute the scripts. So i changed the access... (2 Replies)
Discussion started by: borncrazy
2 Replies

8. Solaris

Problem in SunOS 5.9

In Solaris (SunOS 5.9) a problem is encountered as : The patch command doesnt patch a file greater than or equal to 1MB after it is deleted or changed. Could anyone know the reason. Is this problem related to patch or Sun OS. If so what may be the solution. (3 Replies)
Discussion started by: SankarV
3 Replies

9. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

10. UNIX for Advanced & Expert Users

Telnet Problem with Solaris (SunOS 5.7)

Hi, I have been facing a telnet problem with our SunOS 5.7 box. Initially we were facing porblems in login both from the console as well as through telnet. The machine was hard-booted after which login from console is possible, but telnet connection is not. The error that is displayed is... (1 Reply)
Discussion started by: manoj_gopal
1 Replies
Login or Register to Ask a Question
SSH2_SFTP_MKDIR(3)							 1							SSH2_SFTP_MKDIR(3)

ssh2_sftp_mkdir - Create a directory

SYNOPSIS
bool ssh2_sftp_mkdir (resource $sftp, string $dirname, [int $mode = 0777], [bool $recursive = false]) DESCRIPTION
Creates a directory on the remote file server with permissions set to $mode. This function is similar to using mkdir(3) with the ssh2.sftp:// wrapper. PARAMETERS
o $sftp - An SSH2 SFTP resource opened by ssh2_sftp(3). o $dirname - Path of the new directory. o $mode - Permissions on the new directory. o $recursive - If $recursive is TRUE any parent directories required for $dirname will be automatically created as well. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Creating a directory on a remote server <?php $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection); ssh2_sftp_mkdir($sftp, '/home/username/newdir'); /* Or: mkdir("ssh2.sftp://$sftp/home/username/newdir"); */ ?> SEE ALSO
mkdir(3), ssh2_sftp_rmdir(3). PHP Documentation Group SSH2_SFTP_MKDIR(3)