Commit e30076a0 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Cleanup some code

parent 50c7814b
......@@ -226,30 +226,15 @@ func sshConnect(creds api.Credentials) {
var err error
var client *sshclient.Client
client, err = sshclient.DialWithKey(
"room.hadiko:22",
"burgey",
"/home/burgey/.ssh/id_room.hadiko",
sshHost+":22",
sshUser,
*pubKey,
)
if err != nil {
log.Fatalf("Error dialing: %s", err)
}
defer client.Close()
/*
log.Printf("Opening remote shell")
err = client.Shell().Start()
if err != nil {
log.Fatal(err)
}
*/
// default terminal
/*
log.Printf("Opening remote terminal")
if err := client.Terminal(nil).Start(); err != nil {
log.Fatal(err)
}
*/
cmd := exec.Command("ssh", "-i", "/home/burgey/.ssh/id_room.hadiko", "room.hadiko")
cmd.Stdout = os.Stdout
err = cmd.Run()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment