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!!