Information Technology Questions and Answers Community

Questions/Title


   Asked Questions

Views
263
Answers
1
Action
Views
110
Answers
1
Action
Views
105
Answers
1
Action
Views
137
Answers
1
Action
Views
116
Answers
1
Action
Views
92
Answers
1
Action
Views
104
Answers
1
Action
Views
75
Answers
1
Action
Views
84
Answers
1
Action
Views
96
Answers
1
Action
Views
118
Answers
1
Action
Views
97
Answers
1
Action
Views
86
Answers
1
Action
Views
114
Answers
1
Action
Views
97
Answers
1
Action
Views
84
Answers
1
Action
Views
100
Answers
1
Action
Views
85
Answers
1
Action
Views
72
Answers
1
Action
Views
113
Answers
1
Action
Views
102
Answers
1
Action
Views
111
Answers
1
Action

I've recently gotten acquainted with screen on linux, and I'm using an external setup from https://gitlab.com/joaopizani/env.screenrc-ftw. I was wondering if there's any way to create a routine from screen (or using screen), that will:

  1. Accept 2 arguments: target host and password
  2. Open ssh connection to the host, login with the password
  3. Create a new screen, connect to the same host with the same password, run htop
  4. Split the screen so that on top I have a terminal on the remote connection, and on the bottom I have the htop for that connection.

Because screen is so useful for remote connections, I haven't been able to find any results when searching for this (they all deal with first connecting to an ssh and then running screen, or some other remote management).

Views
92
Answers
0
Action
Edit Account
LOGIN INFORMATION
Change Settings
Email Notifications Notifications will be sent to abcd@gmail.com
Select option for your email notifications:
Mature / News Filter We'll send on email when new jobs are posted
Option 2 for email notification We'll send on email when new jobs are posted