AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-48363

bearrito's questions

Martin Hope
bearrito
Asked: 2016-10-08 05:03:34 +0800 CST

监视 HTTP 状态代码给出语法错误

  • 1

我的系统正在运行 monit 5.19。当我启动 Monit 时,我看到了错误syntax error 'status'

自 5.8 以来似乎支持状态,所以我不确定问题是什么。

它是由以下指令引起的。

check host nlb  with address   host
if failed
  port 443
  protocol HTTPS
  request "/healthcheck"
  ssl options {verify: disable}
  timeout 15 seconds
  status = 200
then restart
monit
  • 1 个回答
  • 2092 Views
Martin Hope
bearrito
Asked: 2016-09-07 10:01:20 +0800 CST

在 /etc/hosts 或 ssh_config 中使用别名

  • 4

我已经配置了一个堡垒或(跳转)框来访问虚拟专用网络。

#ssh_config
Host bastion
HostName 14.90.140.120
User me
IdentityFile ~/.ssh/me
ForwardAgent yes

Host 10.1.*
User me
IdentityFile ~/.ssh/me
ProxyCommand ssh bastion -W %h:%p

我能够毫无问题地通过 ssh 进入堡垒和 10.1.1.6 地址。

我想做的是添加如下条目。注意:我目前没有时间使用 DNS,但这是我的首选方法。

#/etc/hosts
10.1.1.6    my-host-inside-vpc.corp.internal

但是,当我这样做并尝试访问机器时,我得到以下信息

➜  ~ ssh -vvv my-host-inside-vpc.corp.internal
     debug1: Reading configuration data /home/me/.ssh/config
     debug1: /etc/ssh/ssh_config line 19: Applying options for *
     debug2: ssh_connect: needpriv 0
     debug1: Connecting to my-host-inside-vpc.corp.internal [10.1.1.6] port 22.

此时操作超时。

ssh hosts
  • 1 个回答
  • 1185 Views
Martin Hope
bearrito
Asked: 2016-01-08 05:52:09 +0800 CST

fail2ban 在 ignoreip 列表中阻止 IP

  • 9

我正在使用fail2ban,即使我已将该IP列入白名单,它仍会继续阻止该IP。

其中/etc/fail2ban/jail.conf有一行如下所示:

ignoreip = 53.45.114.103

然而,fail2ban 继续阻止这个 IP。查看日志:

2016-01-07 13:34:38,180 fail2ban.actions        [44813]: NOTICE  [ssh] Ban 53.45.114.103
2016-01-07 13:34:38,496 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:38,515 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:38,529 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:38,534 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:38,545 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:38,546 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:38,547 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:38,563 fail2ban.filter         [44813]: INFO    [ssh] Found 53.45.114.103
2016-01-07 13:34:41,026 fail2ban.actions        [44813]: NOTICE  [ssh] 53.45.114.103 already banned
fail2ban
  • 3 个回答
  • 5067 Views
Martin Hope
bearrito
Asked: 2013-11-01 11:11:56 +0800 CST

将用户数据传递给 AWS 客户端

  • 0

有没有人成功地将用户数据传递给 AWS CLI?

我尝试了以下各种咒语,但它不起作用。

文档说字符串必须是 base64 编码:http ://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html

实例日志从不指示脚本已执行并已安装厨师。

aws ec2 run-instances --image-id ami-a73264ce --count 1 --instance-type t1.micro       --key-name scrubbed --iam-instance-profile Arn=arn:aws:iam::scrubbed:instance-profile/scrubbed --user-data $(base64 chef_user_data.sh --wrap=0)

chef_user_data.sh

#!/bin/bash
curl -L https://www.opscode.com/chef/install.sh | sudo bash
amazon-ec2
  • 2 个回答
  • 2196 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve