ref: 9a268964a40ca479c529564a6130113c024b363e
parent: 8fe3213889e424721d1ab8cbfa2c18ea14a84c32
author: mkf <mkf@cloud9p.org>
date: Sat Sep 16 14:54:40 EDT 2023
unix/sshcpu: import
--- /dev/null
+++ b/unix/sshcpu
@@ -1,0 +1,35 @@
+#!/bin/sh
+
+cmd="rc -i"
+user=glenda
+if [ $1 ]
+then
+ cpu=$1
+ auth=$cpu
+fi
+
+
+echo -n "user[$user]: "
+read user
+
+echo -n "cpu[$cpu]: "
+read _cpu
+if [ $_cpu ]
+then
+ cpu=$_cpu
+fi
+
+if [ $cpu ]
+then
+ echo -n "auth[$cpu]: "
+ read auth
+ if ! [ $auth ]
+ then
+ auth=$cpu
+ fi
+else
+ echo no cpu.
+ exit 1
+fi
+
+USER=$user AUTH=$auth CPU=$cpu tlsclient -R $cmd