助けをお願いしたいと思います。ユーザー名に@記号が含まれている場合、どうすればscpタスクを使用できますか?
いろいろな方法でキャラクターを脱出させようとしましたが、うまくいきません。次の例では、私のユーザー名はuser@host.comです。
<scp file="test.txt" todir=""user@host.com":password@ftp.host.com:/" trust="true" sftp="true"/>
<scp file="test.txt" todir="'user@host.com':password@ftp.host.com:/" trust="true" sftp="true"/>
<scp file="test.txt" todir="user\@host.com:password@ftp.host.com:/" trust="true" sftp="true"/>
ただし、出力は常に同じです。
neither password nor keyfile for user "user has been given. Can't authenticate.
とにかく、タスクにこの文字列を正しく解析させる方法はありますか?どうもありがとうございます。
ちなみに、理由はわかりませんが、現在のプロバイダーでは、ホスト名を追加せずにユーザー名を作成することはできません。