Visit Our UNIX and Linux User Community


SFTP error when trying to connect


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SFTP error when trying to connect
# 1  
Old 09-15-2009
SFTP error when trying to connect

Hi,

I am getting the following error when trying to use SFTP to go from my PROD to DEV. We are running AIX 5.3 64 bit.

[tcutil] /home/tcutil/scripts 3720=>sftp -o Cipher=blowfish -o Compression=yes dradmin@xyz
Connecting to xyz....
dradmin@xyz's password:
buffer_get_ret: trying to get more bytes 1 than in buffer 0
buffer_get_char_ret: buffer_get_ret failed
buffer_get_char: buffer error
Connection closed

I am no Unix Guru so please bare with me. Would this indicate that SFTP is not setup or does this indicate that there is something wrong with my statement of how I am connecting?
# 2  
Old 09-15-2009
Try it without the cipher or compression options and see what it does.
# 3  
Old 09-15-2009
Quote:
Originally Posted by Corona688
Try it without the cipher or compression options and see what it does.
>sftp dradmin@xyz
Connecting to xyz...
dradmin@xyz's password:
sftp>


Looks like that worked, but I would like to use the cipher option. What is required to do so?
# 4  
Old 09-15-2009
Well, I think the server would need to be using that cipher option too...
# 5  
Old 09-16-2009
Quote:
Originally Posted by Corona688
Well, I think the server would need to be using that cipher option too...
Any quick hints or links on how to set this up?
# 6  
Old 09-16-2009
Hmm... I'm not sure whether you're using openssl or not, but I've been looking through 'man 5 sshd_config'. It may be the compression option that's fouling it up -- sshd defaults to negotiating for compression, but you're feeding it something already compressed which it can't understand. 'Compression=delayed' may work better on the client side, or you could set Compression=yes on the server side(be cautious though, since that would affect all sshd connections!) Also, 'blowfish-cbc' might be what you want, I don't see blowfish listed as anything else in its default allowed cipher list.
# 7  
Old 09-16-2009
Quote:
Originally Posted by Corona688
Hmm... I'm not sure whether you're using openssl or not, but I've been looking through 'man 5 sshd_config'. It may be the compression option that's fouling it up -- sshd defaults to negotiating for compression, but you're feeding it something already compressed which it can't understand. 'Compression=delayed' may work better on the client side, or you could set Compression=yes on the server side(be cautious though, since that would affect all sshd connections!) Also, 'blowfish-cbc' might be what you want, I don't see blowfish listed as anything else in its default allowed cipher list.
sftp -o Cipher=blowfish -o Compression=delayed dradmin@xyz
Connecting to xyz...
command-line line 0: Bad yes/no argument.
Connection closed

Problem is that I don't have access to modify the config file to enable the blowfish-cbc When I look at it I don't see any CIPHER parameter setting and also, I only see /etc/ssh as opposed to /etc/ssh2...???? Could that be a problem?
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #747
Difficulty: Medium
The Z80 uses 248 out of the available 256 codes as single byte opcodes.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Connect direct - SFTP - List of servers that I can connect

Greetings Experts, I am working for a bank client and have a question on connect-direct and SFTP. We are using Linux RedHat servers. We use connect-direct to transfer (NDM) files from one server to another server. At times, we manually transfer the files using SFTP from one server to another... (2 Replies)
Discussion started by: chill3chee
2 Replies

2. Shell Programming and Scripting

Passwordless SFTP - Can connect from server A to B; but vise-versa not happening

Hi, I am trying to execute password less SFTP between two servers A &B. While I was able to connect B from A; I am not able to connect the A from B. I have done done similar steps for both scenarios: Creating public key using "ssh-keygen -t rsa". Appending the content to "authorized_keys"... (5 Replies)
Discussion started by: mady135
5 Replies

3. HP-UX

Connect to remote server using sftp with password define within command/script

I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need to manually enter it. I want sftp can read a password define in script or from file, so it can... (1 Reply)
Discussion started by: ketanraut
1 Replies

4. Shell Programming and Scripting

How to Log No Connect Error and then Exit using SFTP?

Solaris 10 9/10 BASH using the following code snippet: sftp $TOHOST <<RESULT cd /inbound/ lcd /transfer put $i bye I want to log no server connections and the kill the script after the log entry was made. How would I do... (2 Replies)
Discussion started by: os2mac
2 Replies

5. AIX

AIX Remote Connect Fail With “No more multiple IP addresses to connect” Error

We have a production server at a client site running AIX. And recently when users are trying to connect to it via telnet, it prompts "No more multiple IP addresses to connect". Can I know what does this error mean? and how to rectify this? Thanks. (2 Replies)
Discussion started by: a_sim
2 Replies

6. Emergency UNIX and Linux Support

Unable to connect using SFTP

I shall explain the situation that I am facing to the best extent possible. I require some help, as this situation is an urgent one. I am trying to automate sending data from one AIX machine to another. A script runs that tries to push data received from an upstream application to another AIX... (7 Replies)
Discussion started by: ggayathri
7 Replies

7. Windows & DOS: Issues & Discussions

How to connect SFTP(Linux) from Windows DOS

I need to write a batch script for file transfer from SFTP to Windows system. SFTP is on Linux system. I kept this code in batch file and executing it.. but not working.. Even i tried from Command prompt like this "open sftp.host.com" but getting error. Can anyone help with the code and tell me how... (15 Replies)
Discussion started by: mohantmk
15 Replies

8. Cybersecurity

sftp client can't connect

Hi. I'm trying to use my sftp client on solaris 9 to connect to an sftp server. ssh is installed correctly and I can see my pub/priv key files in the ~/.ssh directory. When I run sftp -v <target> I get: bash-2.05# sftp -v retsdsa.merlin.mb.ca Connecting to retsdsa.merlin.mb.ca... debug1: SSH... (2 Replies)
Discussion started by: skowal
2 Replies

9. Shell Programming and Scripting

need script to connect sftp servers

Dear friends, i need to connect sftp server from my home directory using script . Please can anyone help me on this. (1 Reply)
Discussion started by: kittusri9
1 Replies

10. Shell Programming and Scripting

how to connect sftp server using script

Hi friend I have a command: sftp -v dtxsttp90102@dtx.us.dell.com I need to connect sftp server using above command and grep for some files and need to back to script can anyone tell me how to write script connectingSFTP.sh -------------------- sftpCmd=`sftp -v... (1 Reply)
Discussion started by: kittusri9
1 Replies

Featured Tech Videos