Latest Server related questions

Score: 0
haher avatar
Cannot ssh into AWS instance and getting "Connection closed."
cn flag

Common causes for connection issues We recommend that you begin troubleshooting by checking some common causes for issues connecting to your instance.

Verify the user name for your instance You can connect to your instance using the user name for your user account or the default user name for the AMI that you used to launch your instance.

Get the user name for your user account.

For more information ...

Score: 0
How to replicate growing files?
it flag

I need to replicate a bunch of continuously growing large log files from a network file share.
Can't use rsync, because I don't have ssh access to the server.

Is there any existing Linux tool that can do incremental replication based on comparison of source/target file sizes only? Assuming that the already copied portion of a file is not going to change is okay.

Score: 0
Andrew avatar
Qemu cloud-init nocloud-net static ip
vn flag

I'm using ubuntu-cloud images and I'm trying to run cloud-init with nocloud-net -smbios type=1,serial=ds=nocloud-net;s=http://10.10.0.1:8000/ as described at https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html

I'm able to run it in a dhcp environment but is it not possible to supply a static ip configuration?

I've tried passing ip configuration as described here: https://ask ...

Score: 0
haher avatar
502 error on reverse-proxy nginx
cn flag

I was getting

Error 500 Internal Server Error
Internal Server Error

Guru Meditation:
XID: 549061798

So I just stopped varnish. Now I am getting:

502 Bad Gateway nginx

So I heard that 502 means that nginx is working fine, but Apache is not working fine. Is this the case? Because I copied the configs from another server where the website is working properly and changed the url so that it matches with ...

Score: 0
seamux avatar
Chain reverse proxy on Apache2 not working as expected
kr flag

I tried to set up the following chain of redirects via reverse proxy using Apache2

#          ┌────────────────────────────────────────────┐
#          │                  Internet                  │
#          │          ┌───────────────────────┐        ...
Score: 1
Dave0 avatar
linux bridge two NICs with multiple VLANs and assign virtual IP
us flag

I'm trying to do some testing of linux bridging. I have a server with two NICs (eth1/eth2) and i want to bridge together, use multiple VLAN tags and assign an IP to a virtual interface in each VLAN for me to ping.

I have this so far:

ip link add br0 type bridge vlan_filtering 1
bridge vlan add dev br0 vid 1000 self
bridge vlan add dev br0 vid 1001 self
bridge vlan add dev eth1 vid 1000 pvid
bridge vl ...
Score: 0
0leg avatar
Setup VPS mail server and import to Gmail
tr flag

Problem

Setup

  • There is a dedicated Ubuntu 18.04 VPS.
  • There is a domain "foo.com" bought via GoDaddy.
  • There is a Gmail account "some.name@gmail.com".

Goal

The goal is to send a receive emails using company domain via Gmail. For example "some.name@foo.com".

Gmail allows importing and using IMAP profiles:

Import IMAP profile

I would like to do the same thing as described in https://www.youtube.com/watch?v=MEheS8gM4Xs ...

Score: 0
Zikri Kalib avatar
Run mysql in terminal without argument giving socket error
be flag

When I type in mysql into terminal I got the following error:

ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)

But if run mysql with some arguments like below:

mysql -h 127.0.0.1 -P 3306 -u root -p

It asked me the mysql password that is already defined in /etc/my.cnf . So I pasted the same password and I got connected to the database terminal like thi ...

Score: 1
How to force all traffic for a Linux user group on one interface
de flag

We are running a Linux Mint 20.2 terminal server using ThinLinc's Remote Desktop. A bit unconventionally, we set the primary group for all users as either 'staff' or 'students.' We need to give the 'staff' group unfiltered internet access (via device enp1s0) straight through the LAN gateway. We need to give the 'students' group filtered access (via device enp1s0.20) on a vlan through a pfSense gateway.  ...

Score: 0
I can su as an [open]ldap user on an sssd, but I can't ssh or login directly as the same user, what am I missing?
cf flag

On sssd client

authselect select sssd --force
systemctl enable --now sssd

[root@ldap-sssd ~]# id adam
uid=16859(adam) gid=100(users) groups=100(users)
[root@ldap-sssd ~]# su adam
bash-4.4$ su adam
Password:
su: Authentication failure
bash-4.4$

If I run

sssctl user-checks adam

I see this

user: adam
action: acct
service: system-auth

SSSD nss user lookup result:
 - user name: adam
 - user id: 16 ...
Score: 0
Unable to join Azure Windows Server VM to local domain
vn flag

I'm trying to get my Azure Windows Server VM to connect to my local AD.

I've already created a Site to Site VPN Gateway and connected both the DC (172.16.1.5) and VM (172.16.1.4) and I've confirmed that both can ping each other.

DNS of the VM is set to 172.16.1.5 via Azure Control Panel > Virtual networks > vnet group > vm v-nic > DNS servers

enter image description here

I tried a tracert on the VM but it couldn't reso ...

Score: 0
Tikhon avatar
How to Find all Members of Windows Security Group in PowerShell, Assign to Variable Names and Output to CSV?
za flag

I'm not a sysAdmin/PowerShell guy per se, but am having trouble getting this Powershell query to work.

The need is to pull back all users in a specific Windows Security Group and format them in a specific way (shown below), however am having some problems identifying why my filter for Security Groups is not working and wonder if there's something wrong with how I have the filter set up.

#Snippet
$sear ...
Score: 0
stefan draškoci avatar
SNAT port of Kubernetes outgoing traffic
ni flag

I am currently running Kubernetes with Calico v3.20.2 as the CNI. I have a very unique case where I need to send UDP traffic from a specific DaemonSet Pod to an external server which will read the sourceIP:sourcePort combination of the IP headers, and send the response by setting those two as the destIP:destPort fields. Since different UDP sessions will randomly choose different randomised source ports  ...

Score: 0
Manel R. Doménech avatar
Routing call to IP-filtered web service from Docker container via WireGuard VPN
be flag

Scenario:

A simple PHP script (myip.php) hosted on a server with public IP WSIP. The script is available via http and https.

I have a small server (GW) with public IP GWIP. This server is intented to be used only as a gateway.

Another server (WORKER) has to access the php script, but only via GW. WORKER have Docker installed on it.

Wireguard is configured between GW and WORKER, acting GW as the VPN ...

Score: 0
ahmed shahin avatar
Sharing My USB Storage on remote desktop server
ar flag

I have a server with public IP number running windows server 2019 . I can access this server via remote desktop through my personal computer. Is it possible to share my USB storage from my personal computer and make it appear on public server.

The purpose behind that is to increase storage capacity to take backup of files on it.

Please write steps how do to that if it's doable.

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.