Skip to content

Krush206/socat-remote-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Socat Remote Access

A password-based Shell script that provides similar functionality of SSH servers, but in a simpler way.

I made this script so that I could remote access machines with more ease, as well as machines that do not have a SSH server installed.

How to use

Install socat, change the script's execution permissions and run the following:
( read -r master_pw ; export master_pw ; socat -v exec:"nc -kl 0.0.0.0 <port>",crnl exec:./socat-remote,stderr )

Notes

For multiple remote accesses, replace exec:"nc -kl 0.0.0.0 <port>",crnl with tcp-l:<port>,fork,reuseaddr,crnl

The script is compatible with Windows (Cygwin).

Encryption can be achieved using a P2P VPN software. (Recommend n2n.)

Environment variables are preserved for each program or command the Shell executes, therefore I don't recommend to run the script without a sub-shell.

About

A password-based Shell script for remote access.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages