LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2018, 03:22 PM   #1
ziggs
Member
 
Registered: Jan 2018
Posts: 37

Rep: Reputation: Disabled
Copying Squid Config file to PSCP with Putty


Hello all,

I need to know what I am doing wrong when attempting to make a copy of my squid.conf file using pscp & putty.

C:\Users\USER\Desktop>pscp root@localhost squid://usr/sbin/squid -f /etc/squid/squid.conf ./
More than one remote source not supported

^ the above error is the same one I keep getting. Is this the correct path, or am I doing something wrong?

Help and Feedback greatly appreciated!

Thanks,

ziggs
 
Old 03-04-2018, 03:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,039

Rep: Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892Reputation: 2892
The basic pscp syntax is:
Code:
pscp [options] [user@]host:source destination
In your command above you do have two remote sources.

root@localhost and squid:

In addition, localhost always refers to the computer you are sitting and I doubt your using squid as a hostname. I know of no f option.

[code]
pscp username@remote_IP_address:/etc/squid/squid.conf .[code]

The dot used for the destination is a shortcut for the current working directory where you are running the pscp command.

https://the.earth.li/~sgtatham/putty/0.70/htmldoc/Chapter5.html#pscp

Last edited by michaelk; 03-04-2018 at 03:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PSCP without Putty session open Sam-IQ Linux - Newbie 3 09-10-2013 01:30 PM
Squid config, allow external IP address to connect to Squid langerak Linux - Server 10 08-04-2010 09:17 AM
Squid Proxy -> Putty etc andy7t Linux - Networking 1 09-06-2006 07:31 AM
PuTTY pscp HELP! Joelseph Linux - Software 2 01-20-2004 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration