![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auto login with SFTP | wsiefkas | SUN Solaris | 14 | 10-13-2008 01:41 PM |
| Auto X when Login | BearCheese | HP-UX | 2 | 08-26-2008 07:02 PM |
| UNIX Auto-login | nvanduyne | UNIX for Advanced & Expert Users | 1 | 06-15-2006 11:16 AM |
| Auto Login | merlin | UNIX for Dummies Questions & Answers | 1 | 11-20-2002 12:01 PM |
| Auto login? | merlin | UNIX for Dummies Questions & Answers | 4 | 02-26-2002 12:43 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sftp auto login
Hi,
I looked into lot of posts on this question but i could not figure out the solution. we are using the following ftp shell program to send the file to target server. #!/usr/bin/ksh ftp -n -i<<EOF 2>&1 open <target server ip> user <username> <pwd> lcd /sc/doc/prd/FCSTP put file1.txt quit EOF Problem is target server is not accepting ftp. So, I have tryed with sftp then it's fine.But not able to auto login to the server.Please find the below sftp program. #!/usr/bin/ksh HOST='<target ip address>' user='<username>' pass='<pwd>' echo "Starting to sftp..." sftp $HOST<<EOF 2>&1 user $user $pass lcd /sc/doc/tst/FCSTP put file1.txt bye EOF echo "done" Can any one please help me on this. Thanks, Srini |
|
||||
|
First you have to setup SFTP. Your public key should be in the remote Server
Once you are set, then you dont need password to login for SFTP. Use "sftp -v" option for detail steps of the sftp. You'll have an idea where it is failing. |
|
||||
|
You have to have set up and exchange keys.
Read this article, it is for someone who has never done this before. ssh-keygen: password-less SSH login |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|