Need to copy a file from unix box to windows folder using pscp command Unicorn Meta Zoo #1:...

SQL Query not selecting all points that it should?

With indentation set to `0em`, when using a line break, there is still an indentation of a size of a space

Are all CP/M-80 implementations binary compatible?

Can you stand up from being prone using Skirmisher outside of your turn?

Does Feeblemind produce an ongoing magical effect that can be dispelled?

Flash for group photos near wall

Does Mathematica have an implementation of the Poisson Binomial Distribution?

Raising a bilingual kid. When should we introduce the majority language?

What is /etc/mtab in Linux?

How to count in linear time worst-case?

What is "leading note" and what does it mean to "raise a note"?

How do I check if a string is entirely made of the same substring?

What's parked in Mil Moscow helicopter plant?

Is it acceptable to use working hours to read general interest books?

Multiple fireplaces in an apartment building?

AI positioning circles within an arc at equal distances and heights

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Dynamic Return Type

Map material from china not allowed to leave the country

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

How to open locks without disable device?

Suing a Police Officer Instead of the Police Department

Why does the Cisco show run command not show the full version, while the show version command does?

Implementing 3DES algorithm in Java: is my code secure?



Need to copy a file from unix box to windows folder using pscp command



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraCall putty/plink to start a remote SSH linux script with user inputssh port forwarding from remote location to computers on server's networkHow can I copy a file from a Unix server?Using psftp to copy files from unix to windowsHow to copy a file using pscp through an intermediary gateway server hopRunning interactive commands in remote machine using putty command lineWhy does make install not update my symlinks?PSCP copy files windows to windows over lan failsUsing Plink.exe to remotely logon to remote RedHat Linux server to run local Perl scriptcommand line plink remote target capture traffic via jumphost





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







4















I have a unix svr A:



username: uname
password: pwd


then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username changes to root@svrname ,also no password prompted for this command)



Now, I am trying to execute the below command which is trying to copy the file available under /usr/local/jboss/configuration to my local machine.



pscp -pw pwd root@svrname:/usr/local/jboss/configuration/xyz.xml C:Usersdownloads


but this command prompts for password, m clueless. Please help!!










share|improve this question
















bumped to the homepage by Community 13 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    4















    I have a unix svr A:



    username: uname
    password: pwd


    then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username changes to root@svrname ,also no password prompted for this command)



    Now, I am trying to execute the below command which is trying to copy the file available under /usr/local/jboss/configuration to my local machine.



    pscp -pw pwd root@svrname:/usr/local/jboss/configuration/xyz.xml C:Usersdownloads


    but this command prompts for password, m clueless. Please help!!










    share|improve this question
















    bumped to the homepage by Community 13 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      4












      4








      4


      1






      I have a unix svr A:



      username: uname
      password: pwd


      then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username changes to root@svrname ,also no password prompted for this command)



      Now, I am trying to execute the below command which is trying to copy the file available under /usr/local/jboss/configuration to my local machine.



      pscp -pw pwd root@svrname:/usr/local/jboss/configuration/xyz.xml C:Usersdownloads


      but this command prompts for password, m clueless. Please help!!










      share|improve this question
















      I have a unix svr A:



      username: uname
      password: pwd


      then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username changes to root@svrname ,also no password prompted for this command)



      Now, I am trying to execute the below command which is trying to copy the file available under /usr/local/jboss/configuration to my local machine.



      pscp -pw pwd root@svrname:/usr/local/jboss/configuration/xyz.xml C:Usersdownloads


      but this command prompts for password, m clueless. Please help!!







      unix putty






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 24 '12 at 16:43









      grawity

      245k37516576




      245k37516576










      asked Aug 24 '12 at 16:24









      surajsuraj

      2112




      2112





      bumped to the homepage by Community 13 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 13 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          3 Answers
          3






          active

          oldest

          votes


















          0














          how did you set the variable pwd (should be $pwd)? does it have special characters? check that carefully and echo $pwd to make sure that it has your exact password.



          then take a look a look at your auth or secure log on the server to see what error you are getting. it should tell you if your password is accepted or not.



          also, make sure your root user can log into remotely (not a good idea, but if the server is only accessible in your internal network then it is fine).






          share|improve this answer
























          • the pwd isn't a variable, sorry if this confused you. the password to login to the svr is 'pwd' that's what I meant here

            – suraj
            Aug 27 '12 at 9:34



















          0














          It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.






          share|improve this answer































            0














            how about coying the files some place where "uname" can access them



            uname@svrname:~$ sudo cp -r /usr/local/jboss/ ~/
            uname@svrname:~$ sudo chown -R uname ~/jboss/


            and then on your windows machine:



            pscp -pw pwd uname@svrname:~/jboss/configuration/xyz.xml C:Usersdownloads





            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f465925%2fneed-to-copy-a-file-from-unix-box-to-windows-folder-using-pscp-command%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              how did you set the variable pwd (should be $pwd)? does it have special characters? check that carefully and echo $pwd to make sure that it has your exact password.



              then take a look a look at your auth or secure log on the server to see what error you are getting. it should tell you if your password is accepted or not.



              also, make sure your root user can log into remotely (not a good idea, but if the server is only accessible in your internal network then it is fine).






              share|improve this answer
























              • the pwd isn't a variable, sorry if this confused you. the password to login to the svr is 'pwd' that's what I meant here

                – suraj
                Aug 27 '12 at 9:34
















              0














              how did you set the variable pwd (should be $pwd)? does it have special characters? check that carefully and echo $pwd to make sure that it has your exact password.



              then take a look a look at your auth or secure log on the server to see what error you are getting. it should tell you if your password is accepted or not.



              also, make sure your root user can log into remotely (not a good idea, but if the server is only accessible in your internal network then it is fine).






              share|improve this answer
























              • the pwd isn't a variable, sorry if this confused you. the password to login to the svr is 'pwd' that's what I meant here

                – suraj
                Aug 27 '12 at 9:34














              0












              0








              0







              how did you set the variable pwd (should be $pwd)? does it have special characters? check that carefully and echo $pwd to make sure that it has your exact password.



              then take a look a look at your auth or secure log on the server to see what error you are getting. it should tell you if your password is accepted or not.



              also, make sure your root user can log into remotely (not a good idea, but if the server is only accessible in your internal network then it is fine).






              share|improve this answer













              how did you set the variable pwd (should be $pwd)? does it have special characters? check that carefully and echo $pwd to make sure that it has your exact password.



              then take a look a look at your auth or secure log on the server to see what error you are getting. it should tell you if your password is accepted or not.



              also, make sure your root user can log into remotely (not a good idea, but if the server is only accessible in your internal network then it is fine).







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Aug 24 '12 at 16:46









              johnshen64johnshen64

              4,2991311




              4,2991311













              • the pwd isn't a variable, sorry if this confused you. the password to login to the svr is 'pwd' that's what I meant here

                – suraj
                Aug 27 '12 at 9:34



















              • the pwd isn't a variable, sorry if this confused you. the password to login to the svr is 'pwd' that's what I meant here

                – suraj
                Aug 27 '12 at 9:34

















              the pwd isn't a variable, sorry if this confused you. the password to login to the svr is 'pwd' that's what I meant here

              – suraj
              Aug 27 '12 at 9:34





              the pwd isn't a variable, sorry if this confused you. the password to login to the svr is 'pwd' that's what I meant here

              – suraj
              Aug 27 '12 at 9:34













              0














              It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.






              share|improve this answer




























                0














                It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.






                share|improve this answer


























                  0












                  0








                  0







                  It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.






                  share|improve this answer













                  It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 1 '17 at 1:00









                  Charles BurgeCharles Burge

                  1,6161413




                  1,6161413























                      0














                      how about coying the files some place where "uname" can access them



                      uname@svrname:~$ sudo cp -r /usr/local/jboss/ ~/
                      uname@svrname:~$ sudo chown -R uname ~/jboss/


                      and then on your windows machine:



                      pscp -pw pwd uname@svrname:~/jboss/configuration/xyz.xml C:Usersdownloads





                      share|improve this answer




























                        0














                        how about coying the files some place where "uname" can access them



                        uname@svrname:~$ sudo cp -r /usr/local/jboss/ ~/
                        uname@svrname:~$ sudo chown -R uname ~/jboss/


                        and then on your windows machine:



                        pscp -pw pwd uname@svrname:~/jboss/configuration/xyz.xml C:Usersdownloads





                        share|improve this answer


























                          0












                          0








                          0







                          how about coying the files some place where "uname" can access them



                          uname@svrname:~$ sudo cp -r /usr/local/jboss/ ~/
                          uname@svrname:~$ sudo chown -R uname ~/jboss/


                          and then on your windows machine:



                          pscp -pw pwd uname@svrname:~/jboss/configuration/xyz.xml C:Usersdownloads





                          share|improve this answer













                          how about coying the files some place where "uname" can access them



                          uname@svrname:~$ sudo cp -r /usr/local/jboss/ ~/
                          uname@svrname:~$ sudo chown -R uname ~/jboss/


                          and then on your windows machine:



                          pscp -pw pwd uname@svrname:~/jboss/configuration/xyz.xml C:Usersdownloads






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 1 '17 at 17:15









                          Raouf M. BencheraietRaouf M. Bencheraiet

                          1045




                          1045






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f465925%2fneed-to-copy-a-file-from-unix-box-to-windows-folder-using-pscp-command%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

                              Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

                              Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...