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:\Users\downloads\
but this command prompts for password, m clueless. Please help!!
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 – 2012-08-27T09:34:07.463