Does this tool even work with a SSH key with a passphrase?

Đang mở
#1,038 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, networking

Hướng nghiên cứu

Start by reproducing both commands from the issue and compare the passphrase prompt with the resulting remote command and exit code. No file or test is named; done means establishing the sshuttle session successfully with a passphrase-protected SSH key.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I cannot find any command that accepts SSH key along with passphrase. Here are the commands I am trying but all of them failing.

sshuttle -r ubuntu@10.x.x.x 0/0 -vv
.
.
.
Authorized uses only. All activity may be monitored and reported.
                                                                 ubuntu@10.x.x.x: Permission denied (publickey).
c : fatal: failed to establish ssh session (2)

The following command accepts passphrase but fails miserably.

sshuttle -e 'ssh ubuntu@10.x.x.x -i key' -r ubuntu@10.x.x.x 0/0 -vv
. 
.
.
Authorized uses only. All activity may be monitored and reported.
Enter passphrase for key 'key':
                                bash: ubuntu@10.x.x.x: command not found
                                                                             c : fatal: server died with error code 127
    This error code likely means that we were unable to execute /bin/sh on the remote server. This can happen if /bin/sh does not exist on the server or if you are in a restricted shell that does not allow you to run programs specified with an absolute path. Try rerunning sshuttle with the --python parameter.
Ngôn ngữ chính
Python
Star
13.6k
Fork
795
Merge trung bình
8 giờ 49 phút
Pull request đã merge (30 ngày)
12

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sshuttle/sshuttle

Tất cả issue của sshuttle/sshuttle

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.