Information Technology Questions and Answers Community

Questions/Title


   Asked Questions

Views
288
Answers
1
Action
Views
118
Answers
1
Action
Views
116
Answers
1
Action
Views
149
Answers
1
Action
Views
128
Answers
1
Action
Views
103
Answers
1
Action
Views
124
Answers
1
Action
Views
85
Answers
1
Action
Views
97
Answers
1
Action
Views
115
Answers
1
Action
Views
131
Answers
1
Action
Views
114
Answers
1
Action
Views
95
Answers
1
Action
Views
128
Answers
1
Action
Views
107
Answers
1
Action
Views
102
Answers
1
Action
Views
114
Answers
1
Action
Views
97
Answers
1
Action
Views
88
Answers
1
Action
Views
129
Answers
1
Action
Views
118
Answers
1
Action
Views
121
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
103
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