New answers tagged

0

There are two separate messages: This one tells you that .ssh/private_rsa_key is in wrong format: key_load_public: invalid format debug1: identity file /home/myname/.ssh/private_rsa_key type -1 This one does not show up in without -v switch and is just informative to tell you that you don't have a certificate: debug1: key_load_public: No such file or ...


1

How do you delete ssh if you suspect ra root administrating your macbook.. And are under a control by ssh remote? Deleting (literally) ssh won't help. You would need to delete / disable sshd. The ssh command is for out-going SSH sessions. You are dealing with incoming SSH sessions. But deleting / disabling sshd isn't sufficient. If someone has ...


4

There are many possible solutions for that: You can configure sudo not to require tty: RequireTTY in /etc/sudoers You can force tty allocation on command-line in these specific cases, where you need it: ssh -tt host command You can tell scp not to allocate TTY by -T or -o RequestTTY=no command-line option: scp -T file host:path/ or scp -o RequestTTY=no ...


5

SCP protocol is binary one. With TTY enabled, the control characters have their meaning. So as soon as the TTY sees a character in the SCP protocol binary data that appears as a control character, it interprets it. Particularly as soon as there's ^C (ASCII 0x03), it aborts the SCP process. Use ssh -t to force TTY for interactive sessions, instead of ...


2

Build the command on the remote host, using the HOSTNAME variable to determine the host. pssh -h hosts -l root -i 'passwd -l "$(hostname)"' This assumes that the name of the user account to lock is what the machine thinks of as its name. If you're using nicknames in your SSH configuration and you want to use the nickname in the command rather than the ...


-1

pssh will read your ~/.ssh/config file. If you are using OpenSSH 5.6+ You should specify your users as options in your config file. %h will expand to the hostname with OpenSSH 5.6 and newer. You can use this snippet to always use the user named after the hostname with host* User %h If all of your servers always have users named after the hosts you ...


0

I have had the same issue recently, probably you should add a redirection to stdout at the end of the command, like so: backup_folder=$(ssh -i /home/dexter/.ssh/id_rsa $server 'ls -t '$dir' | head -1' 2>&1)


1

The SSH server has your public key (from id_rsa.pub) in your authorized_keys. The ssh client has the private key (in id_rsa). The debug message means the client is asking the server if it will accept authentication using that public/private keypair.


1

However if I try to connect from outside the docker conatainter / host I get prompted for a password. Should this happen? My assumption was that since I only configured the Port parameter everything else would be turned of including password authentication. Yes. The password authentication is on by default, because it is sometimes the only method you ...


1

Answer by narcisgarcia @ http://ubuntuforums.org/showthread.php?t=1482005 solved my problem. Summary: "Owner of the destination directory must be "root", and group/other users cannot have write permissions."


1

OpenSSH options might behave somehow strange on the first sight. But manual page for ssh_config documents it well: For each parameter, the first obtained value will be used. The configuration files contain sections separated by “Host” specifications, and that section is only applied for hosts that match one of the patterns given in the specification. ...


1

Apart from a few specific (often used) options like -p to set the port, there is the generic -o options. ssh -o HostkeyAlgorithm=ssh-algamel can override that value


3

OpenSSH options might behave somehow strange on the first sight. But manual page for ssh_config documents it well: For each parameter, the first obtained value will be used. The configuration files contain sections separated by “Host” specifications, and that section is only applied for hosts that match one of the patterns given in the specification. ...



Top 50 recent answers are included