Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shell_ssh.h File Reference

SSH shell backend. More...

Go to the source code of this file.

Data Structures

struct  shell_ssh_passwd
 SSH password storage. More...
struct  shell_ssh_context
 SSH transport user data. More...
struct  shell_ssh
 SSH transport API. More...

Macros

#define SHELL_SSH_MAX_PASSWORD_LEN   32
 Maximum password length supported by the shell SSH transport.
#define SHELL_SSH_GET_NAME(_name)
 Helper macro to construct internal symbol names for a shell SSH transport instance.
#define SHELL_SSH_DEFINE(_name)
 Define a shell SSH transport instance.

Detailed Description

SSH shell backend.

Macro Definition Documentation

◆ SHELL_SSH_DEFINE

#define SHELL_SSH_DEFINE ( _name)
Value:
static struct shell_ssh SHELL_SSH_GET_NAME(_name); \
static struct shell_transport _name = { \
.api = &shell_ssh_transport_api, \
.ctx = &_name##_shell_ssh, \
}
#define SHELL_SSH_GET_NAME(_name)
Helper macro to construct internal symbol names for a shell SSH transport instance.
Definition shell_ssh.h:71
SSH transport API.
Definition shell_ssh.h:93
Definition shell.h:907

Define a shell SSH transport instance.

This macro defines a shell transport backed by SSH. Use it together with SHELL_DEFINE() to create a shell instance that is accessible over SSH.

Parameters
_nameName of the transport instance. This token is used to construct the internal symbol names.

◆ SHELL_SSH_GET_NAME

#define SHELL_SSH_GET_NAME ( _name)
Value:
_name##_shell_ssh

Helper macro to construct internal symbol names for a shell SSH transport instance.

◆ SHELL_SSH_MAX_PASSWORD_LEN

#define SHELL_SSH_MAX_PASSWORD_LEN   32

Maximum password length supported by the shell SSH transport.