Howto SSH tricks

Howto do remote command execution with SSH and other tricks, see SSH on Crack

  • GET Copy/Download a File
    • ssh user@myserver.net “cat /etc/apache/httpd.conf” > httpd
  • PUT Copy/Upload a File
    • cat file > ssh user@myserver.net “cat > file”
  • LIST Files
    • ssh user@myserver.net “ls”
  • MGET Files
    • ssh user@myserver.net “tar -cf - /etc” tar -xf -
  • RESUME GET
    • ssh user@myserver.net “tail -c 231244 file” » file

Backup SSH

  • HLE: SSH Replace - need to install new version of SSH, copy current /etc/ssh and run on high port
  • OR run current SSH on normal port, and install DropBear SSH on another port
 
howto/sshtricks.txt · Last modified: 2005/12/28 07:02 by bw
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki