Categorygithub.com/cuisongliu/sshcmd
modulepackage
1.5.5
Repository: https://github.com/cuisongliu/sshcmd.git
Documentation: pkg.go.dev

# README

sshcmd

ssh:

sshcmd --user cuisongliu --passwd admin --host 127.0.0.1 --cmd "ls -l"

scp:

sshcmd --user cuisongliu --passwd admin --host 127.0.0.1 --mode "scp" --local-path "/aa.txt" --remote-path "/aa.txt"

mod: ssh,scp,ssh|scp,scp|ssh

cmd 最后得使用引号包起来

# Packages

No description provided by the author
No description provided by the author