Skip to content
  • About’n’Search
  • Datenschutzerklärung // Privacy Declaration

bytes and bones

stuff that matters

Month: October 2014

Written by #xxaxxelxxOctober 28, 2014July 2, 2015

SSH | How to disable host key checking

Use ssh with -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no BE CAREFUL!

Written by #xxaxxelxxOctober 15, 2014

BASH | get a nearly ;) random array element

RANDOMARRAYELEMENT=${ARRAY[$RANDOM % ${#ARRAY[@]} ]} PLS NOTE: —> N E A R L Y<— For simple purposes, not for cryptography. ;)

Written by #xxaxxelxxOctober 9, 2014

bash | ssh breaks loop

ssh reads from stdi and absorbs all the nest incoming lines. Avoid this feeding him from /dev/null. ssh -p 666 user@my.host.org COMMAND < /dev/null

Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • bytes and bones
    • Join 93 other followers
    • Already have a WordPress.com account? Log in now.
    • bytes and bones
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar