我正在尝试远程运行一些命令并接收带有颜色的输出。我错过了什么?
这是我到目前为止所得到的:
例子.sh
. /etc/profile
[[ -f ~/.profile ]] && . ~/.profile;
[[ -f ~/.bashrc ]] && . ~/.bashrc;
echo "hello remote"
cd /vagrant/repositories/repo
pwd
phpunit --color
Run Code Online (Sandbox Code Playgroud)
我将脚本通过管道传输到 ssh 中,如下所示:
cat example.sh | ssh vagrant@localhost /bin/bash -s
Rackspace 限制云数据库对其 ServiceNet 的访问。如何从 AWS(通过公共互联网)安全有效地连接到数据库实例?