Menu
blog.headdesk.me
blog.headdesk.me

Cool feature on Azure – Run Command Script

Posted on 2018/11/012018/11/01

I don’t think I’ve ever said anything good about Azure, but I’ve finally ran into one today. Someone screwed up sshd_config and the service would not start anymore. With the run script tool, I was able to revert the config to the original version and restart the service. Fortunately, the changes were checked into RCS, which made recovery relatively easy.

Here, I checked out the original version of the config file, overwrite the existing file quietly. Then restart sshd

co -q -f1.1 /etc/ssh/sshd_config
systemctl daemon-reload
systemctl restart sshd

In other cloud environments, I’d have to mount the OS disk on another machine and edit the file. Or do it through console, which only a few providers offer “writable” console.

facebookShare on Facebook
TwitterTweet

Full text search

Recent Posts

  • Dumping AWS Organization tree
  • Free is the most expensive
  • Terraform conditional resource and blocks
  • Upgrade Ubuntu 16.04 to latest release
  • Inspect and control network traffic on AWS
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (7)
  • others (55)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup cloud coffee coreos distributed filesystem docker ec2 EL8 elasticcache etckeeper featured heartbleed kernel linux mail meltdown mysql php pine python rdp rds Redhat Red Hat RHEL RHEL7 rpm Ryzen snapshot spectre SSL systemd tech terraform ubuntu ubuntu upgrade vector vpn wordpress xtreemfs yum

©2022 blog.headdesk.me | Powered by SuperbThemes & WordPress