ssh -t -i <identification file> <user>@<IP> "ls"
しかし、それは次のエラーを返すされています。私はsshと、コマンドを実行すると
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[[email protected]]host1:]file1 ... [[[email protected]]host2:]file2
Connection to <IP> closed.
を、それはうまく動作しますが、これは似ていません。誰かが助けてくれますか?
ありがとうございます。
あなたは 'ssh'コマンドを使用しましたが、エラーメッセージは' scp'ですか? –
はリモートサーバのように見えますが、それを実行する方法、btw、ここで '-t'を使う必要があるのでしょうか? –
@BenjaminW:そうです。 – Samarth