Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

호스트 추가시 호스트의 ssh port 지정 기능 #367

Open
ycyun opened this issue Jan 17, 2024 · 0 comments
Open

호스트 추가시 호스트의 ssh port 지정 기능 #367

ycyun opened this issue Jan 17, 2024 · 0 comments

Comments

@ycyun
Copy link

ycyun commented Jan 17, 2024

이슈 타입

  • 기능 추가 요청

컴포넌트 이름

UI 및 API

ABLESTACK 버전

Diplo 이상

구성

호스트 추가

OS / 환경

N/A

이슈 내용

호스트 추가시 ssh port가 표준 22번이 아닌 비표준 포트를 사용할 경우 해당 포트번호를 사용하여 호스트를 추가 할 수 있는 기능 추가

재현 과정

server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java:257

sshConnection = new Connection(agentIp, 22);

부분을 변경하면 이후 334줄의

 if (!SSHCmdHelper.sshExecuteCmd(sshConnection, setupAgentCommand + parameters)) {

부분에서 해당 포트번호를 사용한 명령이 가능할 것으로 예상

기대한 결과

호스트 추가시 포트번호 입력기능(미입력시 기본값 22)추가 및 비표준 포트를 사용하는 호스트 추가 성공

실제 결과


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant