问题描述
我正在使用PSCP将JAR文件从本地系统发送到EC2实例。我被告知请求成功,尽管当我通过SSH进入EC2实例并在主目录中查找文件时,该文件不存在。知道为什么会这样吗?
我的请求:
pscp -v -P 22 -i C:\Users\seane\OneDrive\Desktop\Converted-MongoInstanceSSHKey.ppk C:/Users/seane/OneDrive/Desktop/CouncillorTest/target/CouncillorAppSB-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```
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)