我正在尝试从远程向本地发送scp。我已经登录到我的远程主机上。我试过了
scp -r hw8/ peke:~/Desktop/
ssh: Could not resolve hostname peke: Name or service not known
我的本地计算机名是peke,我可以从bash终端看到它。
但是,我从远程注销,然后从远程主机到本地主机执行scp,它工作得很好。我正在试图弄清楚为什么上面的方法失败了。感谢您的意见
我试图在远程主机上使用mysqldump。我的本地IP是111.111.111.111,远程IP是222.222.222.222,我运行以下命令:
mysqldump --host=222.222.222.222 -u user test_db
这不起作用,因为我得到的是这个错误:
mysqldump: Got error: 1045: Access denied for user 'user'@'111.111.111.111' (using password: NO) when trying to connect
因此,mysqldump尝试连接到本地主机,
mysql -u user -p pass -h remotehost
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 96
Server version: 5.1.36-community-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysq