- 主题:openssh升级了
从7.X升级为8.X。
然后我踩的坑就是
scp somefile.txt user@110.110.110.110:~/
出现
scp: dest open(""): No such file or directory
的错误
man之后,才发现原来是不再只是~这种通配符了。
--
FROM 220.248.229.*
你用不用openssh?
你的版本是多少?如果是7.XX,那么你还没碰到这个问题。
【 在 JulyClyde 的大作中提到: 】
: 你在说什么?
--
FROM 220.248.229.*
-O Use the original SCP protocol for file transfers instead of the SFTP protocol. Forcing the use of the SCP protocol may be necessary for servers that do not implement SFTP, for backwards-compatibility for particular
filename wildcard patterns and for expanding paths with a ‘~’ prefix for older SFTP servers.
Since OpenSSH 8.8 (8.7 in Red Hat/Fedora builds), scp has use the SFTP protocol for transfers by default.
【 在 arithboy 的大作中提到: 】
: debian 11 没有问题, man里具体哪句话说的啊?
: user@xa1:/dev/shm/aa$ ssh -V
: OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n 15 Mar 2022
: ...................
--
FROM 220.248.229.*
也就一个小问题,alias下用-O就行。
【 在 arithboy 的大作中提到: 】
: debian 11 没有问题, man里具体哪句话说的啊?
: user@xa1:/dev/shm/aa$ ssh -V
: OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n 15 Mar 2022
: ...................
--
FROM 220.248.229.*
也许到9.0又改回来了吧。
【 在 haha103 的大作中提到: 】
: 奇怪,我archlinux的OpenSSH 9.0好像都没有问题,难道有编译参数控制这个?
--
FROM 220.248.229.*