ssh2 & sftp help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ssh2 & sftp help
# 8  
Old 06-22-2006
Hi,
I am using the following for ssh:
F-Secure SSH 5.0.8 on powerpc-ibm-aix5.2.0.0

I understand that you have to specify the Protocol version when using OpenSSh when, whereas for F-secure. the default is Version 2.

The /etc/ssh2/sshd2_config file do not contains any entries for protocol. But however, I have noticed the following:


## Authentication
# Publickey and password authentications are allowed by default

AllowedAuthentications password
# AllowedAuthentications publickey,keyboard-interactive
# AllowedAuthentications hostbased,publickey,password
AllowedPasswordAuthentications radius


The "# AllowedAuthentications publickey,keyboard-interactive " line should be uncommented to allow publickey authentications. Could that be the problem??


The problem is that I am suppose to implement sftp on a server on which I have no root authority and have to constantly revert back to the system administrator to do all the changes. On his part, he just claims that all has been properly set.

So you see, I have to be dammed sure about the issue and required actions before going back to him.

So any further assistance to trouble-shoot would be most welcome.

Regards
# 9  
Old 06-22-2006
We were tlaking about different ssh versions. Which ssh client are you using?
Perhaps uncommenting the line
Code:
AllowedAuthentications publickey,keyboard-interactive

would work... But I'm not shure, let me think Smilie
# 10  
Old 06-27-2006
Hello,

I am able to sftp to the remote server. The output of the following command are as follows:

sftp> ls -l

.:

---------- 1 user group 32752984 May 29 10:43 FILE1.out
---------- 1 user group 32761708 May 18 09:32 FILE2.out
sftp> mget *
open: FILE1.out (src): no such file (server msg: 'File not found')
open: FILE2.out (src): no such file (server msg: 'File not found')


Any idea why I am getting this message? The file transfet is simply failing every time.

Pls help

Thanks a lot
# 11  
Old 06-28-2006
Look at the perms:
Quote:
---------- 1 user group 32752984 May 29 10:43 FILE1.out
Login to the remote server and:
Code:
chmod 644 FILE1.out

# 12  
Old 06-28-2006
Hi thanks Grial,

Now it is working better after changing the files attibutes but I am ruuning into another problem as follows:

sftp> mget *
FILE1 | 3.1MB | 528kB/s | ETA: 00:09:59 | 0%Disconnected; protocol error (Protocol error: packet too long: 35476.).
Warning: child process (/usr/bin/ssh2) exited with code 66.


any further clues, pls
thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. UNIX for Dummies Questions & Answers

SFTP connection to SSH2 UNIX server

Plz share how we can make a passwordless SSH connection from a SSH1 UNIX server to SSH2 UNIX server. (3 Replies)
Discussion started by: krishna87
3 Replies

3. Solaris

SSH & SFTP Chroot

Hello all, does anybody knows a procedure to enable an chroot for users using ssh and sftp ? Thanks (1 Reply)
Discussion started by: celord
1 Replies

4. Shell Programming and Scripting

sftp + expect: disconnection & restart removes already transfered data.

I have an ftp statement that when it restarts, it will write over the top of the file at the other end, rather than append to the file part sitting at the destination. This is a problem because the flaky connection fails so regularly that the 2GB file I try to transfer will never complete. ... (2 Replies)
Discussion started by: rupert160
2 Replies

5. Solaris

SFTP from SSH2 to SSH

Hi, Earlier, I have configured SFTP successfully in my prev jobs. This time I have to configure SFTP for local server (uses SSH2) and remote server (uses SSH). I tried to search the forum. I did not find the right thread. I appreciate your help. The following is the additional info >... (5 Replies)
Discussion started by: bobbygsk
5 Replies

6. AIX

sftp between Unix & windows

Guys, sftp between Unix & Windows I'd like to get good software or a way to how to configure sftp between ( windows to Unix ) and ( Unix to windows ) to be automatic login between the different operating systems without asking password .. Pls assist in this regard … (3 Replies)
Discussion started by: Mr.AIX
3 Replies

7. Shell Programming and Scripting

Using SSH2 in windows

I have Windows server setups consisting two servers to work on. I have to run a batch file on server 2 (say, Batch2) by running a batch file on server 1 (Say, Batch1). We have Tectia SSH server-client setup. Could anyone please tell the script/code for Batch1? (1 Reply)
Discussion started by: sakha83
1 Replies

8. Shell Programming and Scripting

File locking (Unix/Linux) & sftp

Hi all, Can anyone help ...on how to ensure that a file is locked . thanks & regards, Soodoo ---------------------------------------- Problem description: - We usually use the mv command in scripts to make sure that a file is complete and not being written to by another process. ... (1 Reply)
Discussion started by: soodoo
1 Replies

9. Shell Programming and Scripting

SFTP & Passphrase('s)

Hi all, I generally use the something along the lines of the following when I need to perform SFTP's ... sftp -v -o IdentityFile=${IdentityFile} \ -b ${SFTP_BATCH_FILE} \ ${USRID}@${IP_OR_DNS}:${REMOTE_DIR} 2>&1 | tee -a ${SFTPLOG}Now currently we are not using any passphrase... (4 Replies)
Discussion started by: Cameron
4 Replies

10. AIX

SSH2 help !!!!

Hi, I need to implement sftp between server 1 and server2. I have already generated the public key using account user1 on server 1 and and sent it to the administrator of server2. I have also finished updating the identification file at /home/user1/.ssh2 I have an account created... (2 Replies)
Discussion started by: tansha
2 Replies
Login or Register to Ask a Question