Amazon ec2 使用PSCP从windows计算机到EC2实例的PSCP,但文件不';不显示在服务器上

Amazon ec2 使用PSCP从windows计算机到EC2实例的PSCP,但文件不';不显示在服务器上,amazon-ec2,amazon-linux,pscp,Amazon Ec2,Amazon Linux,Pscp,我正在使用PSCP从本地系统向EC2实例发送一个JAR文件。我被告知请求成功,但当我使用SSH连接到我的EC2实例并在主目录中查找文件时,它不在那里。知道为什么吗 我的请求: pscp-v-p 22-ic:\Users\seane\OneDrive\Desktop\Converted-MongoInstanceSSHKey.ppk C:/Users/seane/OneDrive/Desktop/councilortest/target/councilorapsb-1.0-SNAPSHOT.jar

我正在使用PSCP从本地系统向EC2实例发送一个JAR文件。我被告知请求成功,但当我使用SSH连接到我的EC2实例并在主目录中查找文件时,它不在那里。知道为什么吗

我的请求:

pscp-v-p 22-ic:\Users\seane\OneDrive\Desktop\Converted-MongoInstanceSSHKey.ppk C:/Users/seane/OneDrive/Desktop/councilortest/target/councilorapsb-1.0-SNAPSHOT.jar ec2-user@ec2-x-xxx-xxx-xx.compute-1.amazonaws.com:~

答复:

Connecting to x.xxx.xxx.xx port 22
We claim version: SSH-2.0-PuTTY_Release_0.74
Remote version: SSH-2.0-OpenSSH_7.4
Using SSH protocol version 2
No GSSAPI security context available
Doing ECDH key exchange with curve Curve25519 and hash SHA-256 (unaccelerated)
Server also has ecdsa-sha2-nistp256/ssh-rsa host keys, but we don't know any of them
Host key fingerprint is:
ssh-ed25519 255 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
Initialised HMAC-SHA-256 (unaccelerated) outbound MAC algorithm
Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
Initialised HMAC-SHA-256 (unaccelerated) inbound MAC algorithm
Reading key file "C:\Users\seane\OneDrive\Desktop\Converted-MongoInstanceSSHKey.ppk"
Using username "ec2-user".
Offered public key
Offer of public key accepted
Authenticating with public key "imported-openssh-key"
Sent public key signature
Access granted
Opening main session channel
Opened main channel
Started a shell/command
Using SFTP
Connected to ec2-x-xxx-xxx-xx.compute-1.amazonaws.com
Sending file CouncillorAppSB-1.0-SNAPSHOT.jar, size=23682691
CouncillorAppSB-1.0-SNAPS | 23127 kB | 2891.0 kB/s | ETA: 00:00:00 | 100%
Session sent command exit status 0
Main session channel closed
All channels closed```