0
votes
0answers
285 views

mysqldump to local mysql database through ssh

This command: ssh bruchowski@www.example.com 'mysqldump -u bruchowski -p dbname' > mysql -u root dbname Produces this error: mysqldump: Got error: 1045: Access denied for user ...
4
votes
1answer
721 views

Why does redirection fail when passing through ssh, sudo and sh?

After reading this question, I know that I have to do sudo sh -c 'ls -hal /root/ > /root/test.out' to avoid the "Permission denied" error. But when I do ssh hostname sudo sh -c 'ls -hal /root/ ...
3
votes
1answer
492 views

Why can I see password prompts through redirecting output?

So, I've got a command that I'm issuing that is essentially 'ssh'ing into various hosts: command 2&>1 | grep "desired output" Every once in a while, in the midst of the command, it'll run ...
1
vote
1answer
417 views

Redirect output of remote python app started through ssh to file

I have a python app in a remote server that i need to debug, when I run the app locally it prints some debug information (including python tracebacks) that i need to monitor. Im trying to redirect ...
1
vote
1answer
417 views

How can I redirect all traffic to a specific IP? (pseudo-proxy)

I have an SSH tunnel like this: ssh -D 10.1.2.1:8080 -f -C -q -N name@ssh_server_ip I have a computer on the local network (in fact VPN, but it's not important in this case) with an IP of 10.1.2.2. ...
1
vote
1answer
684 views

Why doesn't redirect work for scp password input?

I want to copy from remote box with scp, while the fact that each time I have to re-enter password is annoying. So I store my password in plain text and expect the following code should work scp ...
2
votes
1answer
2k views

Hostmonster Subdomain redirected to home server IP: How to ssh into home server using subdomain

I setup a home server to play with. Instead of remembering the IP address, I created a subdomain on my hostmonster personal website (http://subdomain.domainname.com) and redirected it to point at my ...