오늘:
952
어제:
2,535
전체:
3,103,852

리눅스 팁 & 테크

조회 수 55 추천 수 1 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

기존에 잘 동작하던 scp 명령어가 ubuntu 24.04 환경에서는 동작하지 않는 문제가 있어서

확인한 결과 ssh 패키지가 업그레이드 되면서 변경이 있었습니다.

 

apt changelog openssh-client

 

openssh (1:9.0p1-1) unstable; urgency=medium

 

  * New upstream release (https://www.openssh.com/releasenotes.html#9.0p1):

    - scp(1): Use the SFTP protocol by default (closes: #144579, #204546,

      #327019). This changes scp's quoting semantics by no longer performing

      wildcard expansion using the remote shell, and (with some server

      versions) no longer expanding ~user paths. The -O option is available

      to use the old protocol. See NEWS.Debian for more details.

 
버전이 올라가면서 더 이상 ~user 경로를 확장하지 않기 때문에 -O 옵션을 사용하면 예전 방식을 사용할 수 있다고 되어 있습니다.
 
만약 이전에 다음과 같이 사용했다면
 
scp test.txt hckim@192.168.0.200:/homes/user/dir
 

아래와 같이 -O 옵션을 추가해서 실행해야 동작합니다.

 

ubuntu-noble-scp.png

 

scp -O test.txt hckim@192.168.0.200:/homes/user/dir

 

ref : https://askubuntu.com/questions/1517468/scp-failing-on-24-04

 


CLOSE