SSH: Secure Shell

« Back to Glossary Index

SSH: Secure Shell


SSH is a network protocol primarily used for securing connections and communications between local and remote computers over a network. By utilizing asymmetric cryptography and other security techniques, SSH enables secure transmission of sensitive data and secure user authentication.

Use case:

An example use case of SSH in the context of EDI is in implementing a secure connection between business partners during the electronic exchange of business documents such as orders, invoices, or delivery reports. By using SSH, sensitive and confidential data such as pricing information or authentication credentials can be protected against unauthorized access and interception.

Example of script code:

import paramiko

# Set up SSH client
client = paramiko.SSHClient()

# SSH connection details
hostname = ‘’
username = ‘myusername’
password = ‘mypassword’

# Establish SSH connection
client.connect(hostname, username=username, password=password)

# Execute a command on the remote server
stdin, stdout, stderr = client.exec_command(‘ls -l’)

# Print the output
for line in stdout.readlines():

except paramiko.AuthenticationException:
print(“Authentication failed. Please check your credentials.”)
except paramiko.SSHException as e:
print(“Error occurred while establishing SSH connection:”, str(e))
# Close the SSH connection

Best practices:

  1. Always use strong and unique SSH credentials (username and password) to protect access to remote systems.
  2. Consider using key-based authentication (public-private key pairs) for enhanced security and convenience.
  3. Regularly update and patch SSH software and libraries to address any security vulnerabilities.
  4. Implement proper access control and firewall rules to restrict SSH connections to trusted hosts and networks.
  5. Encrypt sensitive data within the SSH session using additional encryption protocols, if required.

For secure and reliable EDI communications that utilize SSH, consider leveraging the capabilities of the EDIconnect platform, an EDI solution provider. EDIconnect offers comprehensive support for secure data transmission, including SSH integration and management. By utilizing EDIconnect, you can enhance the security of your EDI transactions and ensure the protection of sensitive business data.