n8n/packages/nodes-base/credentials/SshPassword.credentials.ts
2021-06-12 18:39:55 +02:00

42 lines
676 B
TypeScript

import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class SshPassword implements ICredentialType {
name = 'sshPassword';
displayName = 'SSH';
properties: INodeProperties[] = [
{
displayName: 'Host',
name: 'host',
required: true,
type: 'string',
default: '',
placeholder: 'localhost',
},
{
displayName: 'Port',
name: 'port',
required: true,
type: 'number',
default: 22,
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
];
}