Skip to content

Agent-Hellboy/escp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

escp

escp copies files over SSH like scp, but skips files matched by a .scpignore file.

codecov

Features

  • .scpignore support with .gitignore-style patterns.
  • Native SSH transfer using golang.org/x/crypto/ssh.
  • Copies files and empty directories.

Install

Requires Go 1.25 or newer.

git clone https://github.com/Agent-Hellboy/escp.git
cd escp
go build -o escp

Usage

Create .scpignore in the directory where you run escp:

*.log
temp/
/build
!keep.log

Copy a directory:

./escp ./project user@host:/remote/path

Use a custom SSH port:

./escp ./project user@host:2222:/remote/path

SSH auth uses your agent, ESCP_SSH_PASSWORD, or unencrypted default keys in ~/.ssh. The remote host must exist in ~/.ssh/known_hosts.

Test

go test ./...

Remote E2E tests are opt-in:

ESCP_E2E_SSH_URL='user:password@host[:port]' go test -v ./...

Contributions

This project is still rough. Please test it and contribute fixes.

License

MIT

About

No description or website provided.

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages