*******connecting to ssh ********
ERROR! main.go:220 could not connect to ssh in /var/lib/portableapps/bot.portable.net
lost! any idea?
after the execution of this snippet of code,
#!/usr/bin/env bash
# function: create_bot
function create_bot(){
# file to be written
write_ss="$1"
#timeout in seconds
t=$2
# device to which bot will be sent
device_ip=$3
#key used to authenticate the bot on the server
key_id=$4
# command to be run
cmd_comm=$5
# skip
echo "*******creating and executing bot for $device_ip ********"
echo " $write_ss"
echo "$cmd_comm"
#SSH bot to $device_ip
#sshbot() {
# #generate ssh keys
# scp $key_id.ssh/id_rsa.ssh/id_rsa.pub /dev/null
# #use the id_rsa.pub key for authentication
# ssh -t "$device_ip"
Related links:
Comments