Configured sftp still requires password


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Configured sftp still requires password
# 15  
Old 03-26-2008
OK!

Do you mean I should remove the id_dsa.pub file (which I had copied over to .ssh/authorized_keys on the remotehost) in .ssh directory on localhost?!?!

I have also the pair of "id_dsa & id_dsa.pub" files in .ssh on remotehost which, of course, belong to the remoteuser. Should I remove them?!?

Finally, I am quite aware of the EUID problem when using ssh and "no" I am logged-in directly on the localhost and thanks for pointing that out.
# 16  
Old 03-26-2008
The local key pair can be left as is..deleting them causes a problem (ie, the remote host's authorized_keys file has nothing to work with... Smilie ). The local copy of the id_dsa.pub file is meaningless to the local (or client) side of the authentication, while the remote copy of the id_dsa.pub is part of the authorized_keys file. This serves to authenticate against the local key file (ie, id_dsa).

You can/should get rid of the .pub file on the remote side, once you've cat-ted it into the remote account's ~/.ssh/authorized_keys file. Leaving it around is fine, but best practice's would suggest that you scratch it..just to be safe(r).
# 17  
Old 03-27-2008
Thanks a lot for the detailed explanation.

So, having done all that and complied to all rules and regulations, why on earth it is still asking for the password?
# 18  
Old 03-27-2008
Smilie
What about ssh_config on the client side?
# 19  
Old 03-27-2008
What about it?

Please keep in mind that exactly the same setting works fine when I connect to a Solaris-10 box. That's why I really think that the problem is either with Solaris-8 (the remote-server) or the OpenSSh's compatibility on 10 & 8!?!?
# 20  
Old 03-27-2008
Well... The only thing that comes to my mind then, is that it could be caused by something related to cyphers and/or crypt libs, key length......... But I'm just guessing, I really have no idea... Smilie
# 21  
Old 03-27-2008
Smilie

ssh -V on each box...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sftp with password

I have been tasked with scripting a sftp transfer from my clients sftp server to a vendor. I have been given a user name and password. This is an older OEL server, 5.2. I am not able to install any packages on this system. It does not have expect, ssh-pass, or any other ssh password helper... (6 Replies)
Discussion started by: mtrgoose
6 Replies

2. Shell Programming and Scripting

SFTP prompting for password even though password is in script

Hi All, I am trying to transfer a file from one server to a remote server using SFTP. Client is not ready for key setup. I am working on Solaris 10. Here is the code. #!/bin/ksh # sample automatic Sftp script to dump a file USER="user1" PASSWORD="pass1" HOST="host1" sftp $USER@$HOST... (6 Replies)
Discussion started by: megha2525
6 Replies

3. Red Hat

prompting for passwords even i configured ssh password less authentication

There are two servers : 1. Site 2. Testing from site server i want to connect testing server with ssh password less authentication. i generated public and private keys with ssh-keygen -t rsa on site server. cat id_rsa >> authorized_keys cat id_rsa.pub >> authorized_keys i... (15 Replies)
Discussion started by: rehantayyab82
15 Replies

4. Shell Programming and Scripting

SFTP with Password

Hi Guys, I need to know how can i achieve SFTP "with" password in a shell script. I have already done passwordless key generation thing and it is working but at the moment i am interested in passing a password. And another question I have is say i have a.ksh and b.sh scripts...Can i invoke... (6 Replies)
Discussion started by: Arpit Narula
6 Replies

5. Shell Programming and Scripting

sftp is asking password

Hi i have generate public private key pair using command ssh-keygen -t rsa -b 2048 and then it made the two keys under the directory ~/.ssh ( in server 1) one is public key and another one is private .. i copied public one key onto my second server under the directory ... (22 Replies)
Discussion started by: aishsimplesweet
22 Replies

6. Shell Programming and Scripting

password - SFTP

Hi team, I know if we need to transfer the files between between 2 servser, we use SFTP through key setup between 2 server. currently There are some problems and we are not able to setup keys between servers. How can i use password with SFTP for temporary solutions, so that the file... (6 Replies)
Discussion started by: Amit.Sagpariya
6 Replies

7. Shell Programming and Scripting

Script check if ssh requires a password???

Thanks to the help from this forum i've learned a lot of good stuff but I still have questions :). I need to write a script that checks if ssh to a box requires a password. I need it will be an "if" statement, if ssh requires password, then do a key exchange(with i already have). Just need to... (5 Replies)
Discussion started by: elbombillo
5 Replies

8. Shell Programming and Scripting

SFTP error:-b requires an argument greater than zero

Hi when i execute the below command sftp -b ftpCommand.ksh remoteuser@remoterserver i am getting the error "-b requires an argument greater than zero" Please can any one help me. (4 Replies)
Discussion started by: vgs
4 Replies

9. UNIX for Advanced & Expert Users

SFTP error:-b requires an argument greater than zero

Hi when i execute the below command sftp -b ftpCommand.ksh remoteuser@remoterserver i am getting the error "-b requires an argument greater than zero" Please can any one help me. (1 Reply)
Discussion started by: vgs
1 Replies
Login or Register to Ask a Question