小编klo*_*lor的帖子

rsync 错误:在 io.c(605) 中找不到远程命令(代码 127):

我收到以下错误:

    sudo ionice -c 3 nice -n +19 rsync -av --progress -e 'ionice -c 3 nice -n +19 ssh -l root -p 22 192.168.0.1' 192.168.0.1:/domains/remote/. /domains/local/;
root@192.168.0.1's password:
bash: 192.168.0.1: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: remote command not found (code 127) at io.c(605) [Receiver=3.0.9]
Run Code Online (Sandbox Code Playgroud)

rsync 工作较早,现在我收到此错误。

编辑1:

root@local-debian7:/root# rsync -av --progress -e 'ssh -l root -p 22 192.168.0.1' 192.168.0.1:/domains/remote/. /domains/local/;
root@192.168.0.1's password:
bash: 192.168.0.1: command not found
rsync: connection unexpectedly …
Run Code Online (Sandbox Code Playgroud)

linux debian ssh rsync

4
推荐指数
2
解决办法
3万
查看次数

SSH询问密码一次,重复使用密码直到超时完成

我怎么解决这个问题?我有一个 bash 脚本(在 Ubuntu Server 下),执行多个 SSH 连接,执行一些远程传输,例如 rsync 多次。

我的问题是,我想避免多次输入密码。但是我不想使用SSH公钥交换,因为如果有人拥有密钥,就可以连接远程计算机。

我想要以下内容:

  • 当我启动 bash 脚本时 SSH 应该询问密码
  • 重用密码,所以在超时之前不要再次询问密码
  • 超时结束后,再次询问密码。

类似的东西,sudo 是如何工作的,只是使用 ssh。

知道如何解决这个问题吗?

编辑1:

我发现了一个名为 ssh 多路复用的新 SSH 功能。也许使用这个我可以达到我想要的目标。

https://unix.stackexchange.com/questions/50508/reusing-ssh-session-for-repeated-rsync-commands

这行得通吗?

ssh password timeout

3
推荐指数
1
解决办法
1万
查看次数

Debian:“apt install build-essential”由于未满足的依赖项而失败

使用 Debian Stretch v9.11。

我尝试安装 build-essential,但由于未满足的依赖关系而失败:

sudo apt install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but …
Run Code Online (Sandbox Code Playgroud)

debian dependencies apt debian-stretch

3
推荐指数
2
解决办法
1万
查看次数

Debian 9.12 中的 libc6 依赖项不匹配

我在 Debian 9.12 中遇到以下 libc6 依赖问题。

sudo apt 安装 libc6-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= …
Run Code Online (Sandbox Code Playgroud)

linux debian dependencies libc6 debian-stretch

1
推荐指数
1
解决办法
5340
查看次数

标签 统计

debian ×3

debian-stretch ×2

dependencies ×2

linux ×2

ssh ×2

apt ×1

libc6 ×1

password ×1

rsync ×1

timeout ×1