0
내 작업은 Jenkins CI를 사용하여 sftp 서버로 파일 업로드를 자동화합니다. 내 권한이 매우 제한되어 있으며 ssh를 통해 sftp 서버에 액세스 할 수 없습니다.jenkins에서 sftp로 파일 업로드
curl --insecure -vvv -T filename.xml -u user:password sftp://server.com:XXXX
* About to connect() to server.com port XXXX (#0)
* Trying xxx.xxx.xxx.xxx... connected
* Connected to server.com (xxx.xxx.xxx.xxx) port XXXX (#0)
* SSH authentication methods available: publickey,password
* Using ssh public key file /home1/user/.ssh/id_dsa.pub
* Using ssh private key file /home1/user/.ssh/id_dsa
* SSH public key authentication failed: Unable to open public key file
* Initialized password authentication
* Authentication complete
* Upload failed: Permission denied (3/-31)
Connection #0 to host server.com left intact
curl: (9) Upload failed: Permission denied (3/-31)
* Closing connection #0
당신이 다른 방법을 찾거나 내 문제를 해결하는 데 도움 수 : 나는 SFTP bash는 명령을 사용하지만 자동화 비밀번호 입력에 문제가 (설치할 수 없습니다 예상) 컬도이 문제가 발생하는 것을 시도했다 ? 감사합니다.
이 티켓은 현재 실제가 아닙니다. 업로드 할 수있는 방법을 찾았습니다. 업로드 할 파일은 자바를 사용하여 생성되었습니다.이 파일을 업로드하기 위해 자바도 사용했습니다. 하지만 어쨌든 답변 해 주셔서 감사합니다. – Steelflax