(b []byte)
| 370 | } |
| 371 | |
| 372 | func (c *sshCmdConn) Write(b []byte) (int, error) { |
| 373 | n, err := c.stdin.Write(b) |
| 374 | if err != nil { |
| 375 | return n, fmt.Errorf("ssh: %s", strings.Join(c.lastStderrLines(), "\n")) |
| 376 | } |
| 377 | return n, nil |
| 378 | } |
| 379 | |
| 380 | func (c *sshCmdConn) Close() error { |
| 381 | c.cancel() |