scp without known_hosts check
scp is supposed to take the same command line options as ssh, try: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null Maybe add -q to disable the warnings as well.
scp is supposed to take the same command line options as ssh, try: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null Maybe add -q to disable the warnings as well.
Use -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 The combination ServerAliveInterval=15,ServerAliveCountMax=3 causes the I/O errors to pop out after one minute of network outage. This is important but largely undocumented. If ServerAliveInterval option is left at default (so without the alive check), processes which experience I/O hang seem to sleep indefinitely, even after the sshfs gets reconnect‘ed. I regard this … Read more
You need to edit two files: /etc/motd (Message of the Day) /etc/ssh/sshd_config: Change the setting PrintLastLog to “no”, this will disable the “Last login” message. And then restart your sshd.
All users: $ getent passwd All groups: $ getent group All groups with a specific user: $ getent group | grep username
Schematic: ssh ssh A ——> B ——> C ^ ^ using A’s using B’s ssh key ssh key Preconditions: A is running ssh-agent; A can access B; B can access C; A‘s ssh public key is present in B:~/.ssh/authorized_keys B‘s ssh public key is present in C:~/.ssh/authorized_keys In ~/.ssh/config on A, add Host C ProxyCommand … Read more
Unless otherwise specified (usually happens on admin side, and image access), all requests to wordpress pass and are processed by the index.php file, therefor it is not very interesting to look at which file is being “run”, you should look more at the request log and how much time it takes to complete each request. … Read more
Problem solved: $ ssh -L 7000:127.0.0.1:7000 user@host -N -v -v …apparently, ‘localhost‘ was not liked by the remote host. Yet, remote /etc/hosts contains: ::1 localhost localhost. 127.0.0.1 localhost localhost. while the local network interface is lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33184 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 Sigh. so … Read more
You can add -o options to scp instead of .ssh/config. scp -o ProxyCommand=”ssh $jump_host nc $host 22″ $local_path $host:$destination_path $jump_host is your “server B” in this case.
I think your only options are: ssh in as another user and su to your account; use something like ftp or smbclient, if the relevant services are enabled on the host; find an open vulnerability in an open network service and exploit it :). get an admin to fix the problem.
The ~/.ssh/config file don’t have a directive for including other files, possibly related to SSH’s check for file permissions. Suggestions around this can include a script to cat several changes together either on the system or via checkin hooks on a repository. One might also look into tools such as Puppet or Augeas. However you … Read more