VxWorks6.8部署SSH server

该配置文件展示了SSH服务的启用及其所支持的加密和认证算法的开关设置,包括AES、DES、3DES、Blowfish、CAST、RC4、SHA1、SHA1-96、MD5、MD5-96等。此外,还指定了SSH版本、终端服务、SFTP服务及端口转发的启用状态,并给出了默认的DSA和RSA密钥文件名。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

加入SSH的相关组件
/* Security /
#define INCLUDE_IPCRYPTO
#define INCLUDE_IPSSL /
SSL */

#define INCLUDE_IP_SECURITY /* IPSec /
#define INCLUDE_INTERNET_KEY_EXCHANGE /
IKE /
#define INCLUDE_SSH /
SSH /
#define INCLUDE_IPCOM_AUTH_1
#define INCLUDE_IPCRYPTO_USE_KEY_DB_EXAMPLE_KEYS
#define INCLUDE_IPCOM_USE_KEY_DB
#define INCLUDE_PTYDRV /
pseudo terminal driver */

SSH的算法配置等
/*

  • Public key operations during the handshake are CPU intensive. It is a good
  • idea to run these tasks at a lower priority. Possible values are 1-7.
    */
    #ifndef SSH_SPAWN_TASK_PRIORITY
    #define SSH_SPAWN_TASK_PRIORITY 2
    #endif

/* Enables the use of the AES cipher. 1 means on, 0 means off. */
#ifndef SSH_USE_AES
#define SSH_USE_AES “1”
#endif

/* Enables the use of the DES cipher. 1 means on, 0 means off. */
#ifndef SSH_USE_DES
#define SSH_USE_DES “1”
#endif

/* Enables the use of the 3DES cipher. 1 means on, 0 means off. */
#ifndef SSH_USE_3DES
#define SSH_USE_3DES “1”
#endif

/* Enables the use of the Blowfish cipher. 1 means on, 0 means off. */
#ifndef SSH_USE_BLOWFISH
#define SSH_USE_BLOWFISH “1”
#endif

/* Enables the use of the CAST cipher. 1 means on, 0 means off. */
#ifndef SSH_USE_CAST
#define SSH_USE_CAST “1”
#endif

/* Enables the use of the RC4 cipher. 1 means on, 0 means off. */
#ifndef SSH_USE_ARCFOUR
#define SSH_USE_ARCFOUR “0”
#endif

/* Enables the use of no cipher. 1 means on, 0 means off. */
#ifndef SSH_USE_NO_CIPHER
#define SSH_USE_NO_CIPHER “0”
#endif

/* Enables the use of SHA1 for authentication. 1 means on, 0 means off. */
#ifndef SSH_USE_SHA1
#define SSH_USE_SHA1 “1”
#endif

/* Enables the use of SHA1-96 for authentication. 1 means on, 0 means off. */
#ifndef SSH_USE_SHA1_96
#define SSH_USE_SHA1_96 “1”
#endif

/* Enables the use of MD5 for authentication. 1 means on, 0 means off. */
#ifndef SSH_USE_MD5
#define SSH_USE_MD5 “1”
#endif

/* Enables the use of MD5-96 for authentication. 1 means on, 0 means off. */
#ifndef SSH_USE_MD5_96
#define SSH_USE_MD5_96 “1”
#endif

/* Enables the use of no authentication. 1 means on, 0 means off. */
#ifndef SSH_USE_NO_MAC
#define SSH_USE_NO_MAC “0”
#endif

/* Enables SSH v1. 1 means on, 0 means off. */
#ifndef SSH_USE_V1
#define SSH_USE_V1 “0”
#endif

/* Enables SSH v2. 1 means on, 0 means off. */
#ifndef SSH_USE_V2
#define SSH_USE_V2 “1”
#endif

/* Enables SSH Terminal Service. 1 means on, 0 means off. */
#ifndef SSH_USE_TERMINAL
#define SSH_USE_TERMINAL “1”
#endif

/* Enables SSH SFTP Service. 1 means on, 0 means off. */
#ifndef SSH_USE_SFTP
#define SSH_USE_SFTP “1”
#endif

/* Enables SSH Port Forwarding. 1 means on, 0 means off. */
#ifndef SSH_USE_PORT_FWD
#define SSH_USE_PORT_FWD “0”
#endif

/* Name of DSA Key File stored at IPCOM_FILE_ROOT */
#ifndef SSH_DSA_KEY
#define SSH_DSA_KEY “dsa_key.pem”
#endif

/* Name of RSA Key File stored at IPCOM_FILE_ROOT */
#ifndef SSH_RSA_KEY
#define SSH_RSA_KEY “rsa_key.pem”
#endif

其他运行效果没有截图了,有寻求帮助的朋友可以私信我

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Bull-man

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值