Python scripts I use to manage my ssh connections, drive mounts, and other bash related things.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
3.7 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. # roosay
  2. ````
  3. -------------
  4. < Only at RIT >
  5. -------------
  6. \ /)/)
  7. \ (ø.ø)
  8. \ ( />
  9. __/ _\ //
  10. '~( '~ )//
  11. _\ '}/
  12. "--~(/
  13. ````
  14. roosay is a simple python script which displays an ascii roo with a quote above it
  15. ## Install
  16. Copy the roosay.py file from the src directory
  17. ## Usage
  18. python3 roosay.py Super cool message
  19. or create a .bashrc alias
  20. roosay super cool message
  21. # SSH Manager
  22. ````
  23. **************************************
  24. * SSH manager V 0.2 *
  25. * 1) user1@host_name *
  26. * 2) user2@host_name_2 *
  27. * A) Exit *
  28. * B) Manager tools *
  29. * C) Socks Tunnel *
  30. **************************************
  31. ````
  32. ## About
  33. I developed this program to simply make it easier to manager all your ssh accounts
  34. in a single program. SSH keys are nice; however, you still have type "ssh user1@host"
  35. every time you wish to connect to a computer -- which can be a lot for some people.
  36. This program keeps track of all your ssh accounts so they are a few keystrokes away.
  37. ## Installation
  38. This program is simply a python script that you execute. For example:
  39. python3 ssh_manager.py
  40. or edit your bash configuration with an alias to make it less typing
  41. alias ss="python3 /path/to/this/file/ssh_manager.py"
  42. Please note that this program reads in a text file called "servers.txt". In order for
  43. the bash manager to know where this text file is, please edit line 11 of ssh_manager.py
  44. it should look something like this:
  45. INPUT_FILE = "/path/to/servers.txt"
  46. ## Usage
  47. Your first time running you should see:
  48. ````
  49. **************************************
  50. * SSH manager V 0.2 *
  51. * A) Exit *
  52. * B) Manager tools *
  53. * C) Socks Tunnel *
  54. **************************************
  55. ````
  56. I would like to believe that I made this menu intuitive enough so you don't have to
  57. read any documentation. However...
  58. Typing B will pull up this menu:
  59. ````
  60. **************************************
  61. * Options *
  62. * 1) Add Host *
  63. * 2) Copy SSH key to server *
  64. * 3) Remove host name *
  65. * 4) Return to ssh manager *
  66. * 5) Exit *
  67. **************************************
  68. Enter selection:
  69. ````
  70. This is where you can run the add host names to the manager -- same as adding them to
  71. the "servers.txt".
  72. If you don't have ssh keys installed on your servers, or forgot the command to do so,
  73. you can use the "2" option to copy your ssh key to a server.
  74. "3" Pulls up an additional menu which you can use to select a entry to remove.
  75. "4" Returns to the main manager window.
  76. If you added some accounts your main window should look like this:
  77. ````
  78. **************************************
  79. * SSH manager V 0.2 *
  80. * 1) user1@host_name *
  81. * 2) user2@host_name_2 *
  82. * A) Exit *
  83. * B) Manager tools *
  84. * C) Socks Tunnel *
  85. **************************************
  86. ````
  87. Now is the easy part. Simply enter the number of the computer you wish to connect to
  88. and it will open a ssh connection.
  89. If you are interested in doing lots of socks proxies -- for whatever reason.
  90. From the main menu type "C".
  91. ````
  92. **************************************
  93. * Socks Tunnel *
  94. * 1) user1@host_name *
  95. * 2) user2@host_name_2 *
  96. * A) Exit *
  97. * B) Main *
  98. **************************************
  99. ````
  100. Now whichever computer you select, it will open a socks proxy. To use the proxy use
  101. localhost and port 8123.