Published on

SSH and File Transfer

Authors
  • Name
    Jackson Chen

SSH public and private key

  1. Create ssh public and private key pair
  2. Copy the ssh public key to the remote systems
# Copy and paste the content of the public key to remote system
1. create <pubic-key.pem>
    vi <pubic-key.pem>
2. paste the public key content
    ctrl+shift+v
  1. Secure ssh public key on the local machine
chmod 400  <ssh-public-key.pem>
  1. ssh to remote system
ssh -i "<ssh-public-key.pem>  <ssh-user-name>@<remote-system / IP>

OpenSSH

OpenSSH config

https://linux.die.net/man/5/ssh_config

Cyper cheat sheet

https://memgraph.com/blog/cypher-cheat-sheet

Cypher is the most widely adopted, fully specified, and open query language for property graph databases. It provides an intuitive and fast way to work with property graphs.

MATCH

# Find nodes with specific properties
    MATCH (c:City {name: "London"})
    RETURN c.population_size;

. MATCH (c:City {name: ”London”}): the MATCH clause specifies a node pattern with the label City, 
    filters the matched results to those with a name property with value London and assigns the matches to variable c.
. RETURN c.population_size: the RETURN clause is used to request specific results.

OpenSSH crypto-policies backends openssl.config

Troubleshooting ssh connection issue, using command

ssh -vvv <remote-ip>
ssh -vvv localhost

To verify the openssl crypto policies and configuration

/etc/crypto-policies/back-ends/openssl.config