Passwordless SFTP - SCP Option?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Passwordless SFTP - SCP Option?
# 8  
Old 07-25-2012
Your permissions on those folders may be wrong. sshd will refuse to read them if they're set with insecure file and folder permissions.

Your ~/.ssh/ folders on both ends need to be 700. Your authorized_keys needs to be 744.

I don't see much point in putting the key in authorized_keys2.
# 9  
Old 07-25-2012
Quote:
Originally Posted by Corona688
Your permissions on those folders may be wrong. sshd will refuse to read them if they're set with insecure file and folder permissions.

Your ~/.ssh/ folders on both ends need to be 700. Your authorized_keys needs to be 744.

I don't see much point in putting the key in authorized_keys2.
Yup, those are the permissions I have set and still prompts for password.

I have also checked /etc/ssh files (ssh_config and sshd_config) based on some info found online and both look correct.
# 10  
Old 07-25-2012
Tell me more about your local system and the system you're ssh-ing into. Are they different OSes?
# 11  
Old 07-25-2012
Quote:
Originally Posted by Corona688
Tell me more about your local system and the system you're ssh-ing into. Are they different OSes?
Actually SCPing a file on the same machine, just between two different accounts. This only involves one server, but between accounts I figured this should be done via SCP as we are trying to automate this process.

Does this change things? Is there a better way to copy files between two accounts?
# 12  
Old 07-25-2012
How about you tell me the operating system of your single system, then? Smilie

I might use sudo -u username cp, though you'd have to configure sudo to allow it passwordlessly for the relevant users.
# 13  
Old 07-25-2012
Quote:
Originally Posted by Corona688
How about you tell me the operating system of your single system, then? Smilie

I might use sudo -u username cp, though you'd have to configure sudo to allow it passwordlessly for the relevant users.
Sorry about that.

The server is running Solaris 10 8/07 s10s_u4wos_12b SPARC.
# 14  
Old 07-25-2012
Try a DSA key instead of an RSA one.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to use passwordless sftp in script?

Hi I am trying to do SFTP in shell script in such a way that it should not ask for password. for this is use below script but it prompt for password. here I am not abled to understand where I am making mistake. #!/bin/bash # SFTP TO remote server USER="ITO" PASSWORD="abcd@1234"... (4 Replies)
Discussion started by: scriptor
4 Replies

2. Shell Programming and Scripting

SUEXEC with passwordless option

Hi, I am using the below command in suexec -u webuser /local/Tomcat7//0/tc7u/tomcat7.sh status But it prompts for the password of executing user. Let me know if any options available for passwordless or supplying password in script. (0 Replies)
Discussion started by: pravinbtech
0 Replies

3. UNIX for Dummies Questions & Answers

Passwordless SSH works, scp does not

I know the "how to setup passwordless SSH" question is asked probably 5 times a week. I know how to setup passwordless SSH, it's not tough, however after reinstalling linux on my server, I found a problem. I could SSH into my server just fine, no password required, however SCP still required a... (4 Replies)
Discussion started by: corrado33
4 Replies

4. Solaris

Passwordless sftp issue

Hello Experts, I am trying to setup passwordless sftp from one of linux box to solaris box. I have generated key-pair and below is the permissions of the respective files. drwx------. 2 sftpuser sftpuser 4096 Dec 17 23:57 .ssh drwx------. 2 sftpuser sftpuser 4096 Dec 17 23:57 .... (16 Replies)
Discussion started by: sai_2507
16 Replies

5. Shell Programming and Scripting

Passwordless file transfer using sftp

Hello all, I have a requirement, in which we need to stage a package to Unix remote server in an automation (we cant use ssh key generation) , do u have any idea how we can transfer the package to remote server using sftp .if you have any script plz share it to me (4 Replies)
Discussion started by: Ramji Sundaram
4 Replies

6. Cybersecurity

SFTP passwordless (kind of works)

Hi, I set up the keys on local and remote server. If I simply do: sftp xxx.xxx.xxx.xxx It works without asking for a password. But if I change the command to: sftp user@server it prompts me for password. Anybody know how to rectify this? Thanks a bunch. EDIT: I copied the key... (3 Replies)
Discussion started by: tetra
3 Replies

7. Shell Programming and Scripting

passwordless sftp with debug options

Hi, In our project we already have a passwordless sftp with -b (batchfile) option working but there have been some new application rolled out at the client site and they want us to raise the DEBUG option somebody suggested to use following options with sftp command -oLogLevel=DEBUG... (4 Replies)
Discussion started by: dips_ag
4 Replies

8. Shell Programming and Scripting

keypair generation for passwordless sftp

Hi, I want to establish a passwordless sftp between the two servers. I've searched the net and know the steps to be taken; which are as follows: $ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (~/.ssh/id_rsa): ~/.ssh/id_rsa already... (3 Replies)
Discussion started by: dips_ag
3 Replies

9. Windows & DOS: Issues & Discussions

Passwordless SCP for windows

Hi, I installed OpenSSH for Windows v3.8.1 on a Windows Server 2003 R2. From my pc (which is running windows XP), I can run commands like scp to the server. But its prompting me for a password. I googled some more and found out about the public/private keys which i set up. But... (2 Replies)
Discussion started by: wala_lang
2 Replies

10. Shell Programming and Scripting

Passwordless SFTP

Hi, When Iam trying to do SFTP it is asking for password everytime. Can I have any alternative where I can provide the password in script itself. Because there are some control-M jobs which runs without user interaction. So please let me know the script where we can provide the password in the... (2 Replies)
Discussion started by: manneni prakash
2 Replies
Login or Register to Ask a Question