Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8806029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:00:58+00:00 2026-06-14T02:00:58+00:00

I need to retrieve a list of *.zip files from server B which is

  • 0

I need to retrieve a list of *.zip files from server B which is an FTP server to server A (from server A) which is a mysql server. I am unable to use PHP or KeyGen for SSH without password. I am very limited on what I can do. I started trying to create a Perl Script to allow ssh log in without password but the dependencies just keep staking up, the network is not able to connect to the internet for updates, and I can not install in the default folder on the mysql or ftp server due to lack of permissions once I leave my ~ home directory.

The following bash script does exactly what I want however I can not use it in production because I can not generate a ssh-rsa/dsa-auth key that would allow ssh without a password. Any thoughts on the matter would be greatly appreciated.

`##Check tmp for previous listing

   fileExists=$(ls /tmp | grep file | wc -l);

 ## File should not exist--- Just incase we will check and remove it 
   if [ $fileExists = "1" ]; then

      rm /tmp/File.tmp

   fi

   ssh usr@100.0.0.0 ls | grep .zip >> /tmp/File.tmp

   echo "File list recieved sucessfully $DATE" >> ./logs/fileList.log

Thank you in advance for any guidance you may be able to give me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:00:59+00:00Added an answer on June 14, 2026 at 2:00 am

    lftp can do this quickly if your not squeamish about your username and password showing up in the process list

    lftp -u username,password sftp://server -e "ls"
    

    It also can run a whole series of commands from a file (with the -f switch), so the username and password don’t show up. It should be present on most linux boxes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dictionary/list balance_sign_dict from which I need to retrieve 2 values based
I need to retrieve data from two tables. the first is a list of
I need to retrieve information from two separate models which are similar but not
I need to retrieve random rows from SQL Server database. I am looking for
I need to retrieve a list of given entities (apples) from another resource (fruitDelaer)
I need to retrieve a list of entities from my database that matches a
I need to retrieve a list of all files of a certain type on
I need to retrieve a list of all the files that have been checked-in
I have been using SharePoint server 2003. I need to retrieve the list of
I am using Jquery's autocomplete to retrieve a list of options from the mysql

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.