Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:\Users\downloads\

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

share|improve this question

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.