修复了ssh私钥登录失败的问题

This commit is contained in:
dushixiang
2020-12-28 22:39:54 +08:00
parent 0dbdaf1489
commit d132a0ac65
6 changed files with 21 additions and 5 deletions

View File

@ -67,7 +67,7 @@ const AssetModal = function ({title, visible, handleOk, handleCancel, confirmLoa
handleAccountTypeChange('custom');
break;
case 'vnc':
port = 5901;
port = 5900;
setAccountTypes(protocolMapping['vnc']);
form.setFieldsValue({
accountType: 'custom',
@ -188,6 +188,10 @@ const AssetModal = function ({title, visible, handleOk, handleCancel, confirmLoa
{
accountType === 'private-key' ?
<>
<Form.Item label="授权账户" name='username'>
<Input placeholder="输入授权账户"/>
</Form.Item>
<Form.Item label="私钥" name='privateKey' rules={[{required: true, message: '请输入私钥'}]}>
<TextArea rows={4}/>
</Form.Item>