LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-27-2009, 02:16 AM   #1
mfran2002
Member
 
Registered: Nov 2004
Posts: 32

Rep: Reputation: 15
pscp and password containing " character


Hi,
I'm trying to connect to server via pscp

no problem if I get password manually, but I cannot insert it in a batch file avoiding to insert every time...

Guess because my pwd has " character within (double quotation marks)....

I canno change pwd....how can I do?

thanks, bye
 
Old 11-27-2009, 02:22 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Show us your "batch file" so we can understand your problem (change all the password characters except ", ', ` and \ to X)
 
Old 11-27-2009, 02:26 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Maybe try to esacpe the whole password inside ' (single quotation mark).
 
Old 11-27-2009, 03:29 AM   #4
mfran2002
Member
 
Registered: Nov 2004
Posts: 32

Original Poster
Rep: Reputation: 15
pscp -pw my"passwd .\myfolder\myfile.txt root@mylinuxsrv:/myremotefolder
 
Old 11-27-2009, 04:21 AM   #5
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
pscp -pw 'my"passwd' .\myfolder\myfile.txt root@mylinuxsrv:/myremotefolder

Does this work?
Else try
pscp -pw my\"passwd .\myfolder\myfile.txt root@mylinuxsrv:/myremotefolder

Cheers Zhjim
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set min 10 character default password pbhinder Linux - Newbie 3 07-08-2009 07:40 AM
KDE/Qt: Character to use for password entries amoebios Linux - General 0 07-02-2009 04:21 AM
postfix smtp_sasl_password_maps #-character in password rutgerw Linux - Server 0 02-22-2008 04:16 PM
I need extend password length to 12 character or more HIDOKAI AIX 3 03-19-2006 11:58 PM
Mandrake 10 prints blank page with "a" character on startup with HP LaserJet1200 mandrake_2k4 Linux - Hardware 0 04-10-2004 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:30 AM.

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