Chronicles of Technology
  • Home
  • Authors
  • Tags
  • Search

SFTP

A collection of 2 posts
Bash

Promptless SFTP in bash script

Want to run SFTP command in a bash script without being prompted? Here are quick examples of 2 approaches; one with password based authentication and one with private key authentication. Password Authentication cd /source_directory_on_local echo "cd /target_directory_on_remote" > /tmp/commands.txt echo
Jun 16, 2022
SSH

Connecting with a private key using SSH and SFTP

SSH uses public/private key pairs. id_rsa is your RSA private key (do not share this!). id_rsa.pub is your RSA public key; this you give out to the administrator of the target system so that they can add it to verify that the signature came from your
Nov 4, 2021
Page 1 of 1
Chronicles of Technology © 2025
Powered by Ghost