Need to copy a file from unix box to windows folder using pscp command
up vote
4
down vote
favorite
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
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
4
down vote
favorite
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
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
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
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
unix putty
edited Aug 24 '12 at 16:43
grawity
227k35475537
227k35475537
asked Aug 24 '12 at 16:24
suraj
2112
2112
bumped to the homepage by Community♦ 2 days 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♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
0
down vote
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).
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
add a comment |
up vote
0
down vote
It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.
add a comment |
up vote
0
down vote
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
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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).
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
add a comment |
up vote
0
down vote
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).
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
add a comment |
up vote
0
down vote
up vote
0
down vote
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).
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).
answered Aug 24 '12 at 16:46
johnshen64
4,2491211
4,2491211
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
add a comment |
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
add a comment |
up vote
0
down vote
It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.
add a comment |
up vote
0
down vote
It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.
add a comment |
up vote
0
down vote
up vote
0
down vote
It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.
It's likely that your ssh server is configured to disallow remote root logins. Check your /etc/ssh/sshd_config on the server.
answered Mar 1 '17 at 1:00
Charles Burge
1,5661311
1,5661311
add a comment |
add a comment |
up vote
0
down vote
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
add a comment |
up vote
0
down vote
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
add a comment |
up vote
0
down vote
up vote
0
down vote
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
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
answered Apr 1 '17 at 17:15
Raouf M. Bencheraiet
1045
1045
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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