How to configuration SFTP password less between two server A and B?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to configuration SFTP password less between two server A and B?
# 1  
Old 03-10-2016
How to configuration SFTP password less between two server A and B?

1.I created the SSH key in A server and that ssh key register(Copy SSH folder)in B server.
2.I am able to login the SFTP but while login it is assking password but I need without passwrd how to upload the file using sftp because I am doing automated the process means every day one file get uploaded in the directory

Also if u could let me know step by step it will be greate for me to configure SFTP between two server

Last edited by jagu; 03-10-2016 at 08:08 AM..
# 2  
Old 03-10-2016
Does ssh login work without a password? Are you using the correct user?
# 3  
Old 03-10-2016
Yes ssh also With passwd am able to login ssh and sftp plaese let me know for the same if u have any update
# 4  
Old 03-10-2016
If - as you say - you can't login with ssh public key authentication, your setup seems to be wrong.
Copying the ssh key to the remoteuser/.ssh directory is not enough; it needs to be appended to the ~/.ssh/authorized_keys file, and file and directory should have the recommended permissions.
You may want to use the -v (verbose) option to find some hints on what might be wrong.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

2. Solaris

Script to get files from remote server to local server through sftp without prompting for password

Hi, I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script. Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 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

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

5. UNIX for Dummies Questions & Answers

Script to log in SFTP server [with username, password]

Hi, everyone, I am trying to write a script to login automatically using username and password to an sftp server (the key authentication has been disabled so I cannot use that method). I tried to search online for a solution and found a way using "expect" but my boss does not want me to use... (4 Replies)
Discussion started by: warmboy610
4 Replies

6. Shell Programming and Scripting

Auto Script to Access external Server via SFTP using Password and Key

Hello All, I am stuck! I have access to an external server via SFTP. In order to access the external server I was given a specific port, password, and a ppk. I would to create a script on my server end that can I can setup as a corn job, that will connect to the external server and... (1 Reply)
Discussion started by: kingr008
1 Replies

7. Red Hat

sftp configuration | to lock users to their home folder.

In generally I use vsftp but I want to improve our security so I decide to use sftp instead of vsftp. We know that ssh,scp and sftp are in openssh server. How can I lock only sftp user to their home folder? And to prevent some users for sftp like root as such in vsftp daemon? (3 Replies)
Discussion started by: getrue
3 Replies

8. 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

9. AIX

SFTP from one server to another with password

All, Is there a possibility to sftp a file from one AIX server to another AIX server with password? I do not want to use public or private key option as we would have required privileges for creating the keys. So Please provide the needful with a sample script. Thanks in Advance, Vijayakumar S... (2 Replies)
Discussion started by: kuppu.uncle
2 Replies

10. UNIX for Dummies Questions & Answers

Password less configuration in git repository

Hi , Currently i am working on git repository,It is absolutely new to me. To export the source code from git, writing the scripts. But the configuration for the password less is not getting. As i had over come this situation in CVS . Please help me out to configure for password less automation... (1 Reply)
Discussion started by: posix
1 Replies
Login or Register to Ask a Question