Hot answers tagged

141 votes
Accepted

ssh-keygen does not create RSA private key

I faced the same problem recently (after upgrade to mojave 10.14.1), here are 2 possible solutions for this issue. Downgrade your ssh-keygen binary (you can easily get old version from any linux/...
  • 1,534
126 votes

ssh-keygen does not create RSA private key

New keys with OpenSSH private key format can be converted using ssh-keygen utility to the old PEM format. ssh-keygen -p -m PEM -f ~/.ssh/id_rsa There is no need to downgrade to older OpenSSH just to ...
  • 1,361
28 votes

How to restart Nginx on Mac OS X?

for brew installation: sudo brew services restart nginx
  • 381
8 votes

VNC viewer not connecting to Mac from Windows

A few years later, the "world has changed", so The free version of RealVNC (v. 6.17.1113, Nov 2017, x64) works smoothly for me. In particular from Windows 7 Professional to OS X Yosemite (10.11) and ...
  • 384
8 votes

how to install fuzzystrmatch.sql pg_trgm.sql on postgresql on mac os x

If you can't find that extension, it's possible you didn't install postgres contrib. for instance, on centos style os's: yum install postgresql93-contrib
  • 181
8 votes

How to restart Nginx on Mac OS X?

If you are using brew: To see all services: brew services list Start nginx service: brew services start nginx Stop nginx Service: brew services stop nginx
  • 180
8 votes

Can I use nmap to discover IPs and mac addresses?

The following command with nmap with root privilegies (or using sudo): sudo nmap -sP 172.31.201.0/24 | awk '/Nmap scan report for/{printf $5;}/MAC Address:/{print " => "$3;}' | sort results in: ...
8 votes

Accessing Ubuntu 20.04 from Mac OS Catalina: which client to use?

I also had this problem earlier. [My original comment was just a "I have this too" post and was deleted. This comment does have a solution:] It looks like the two systems cannot negotiate an ...
7 votes

Can I use nmap to discover IPs and mac addresses?

This commands scans all IP addresses in a range and shows the MAC address of each IP address. It does this in a greppable format, or in other words; displays IP and MAC address on a single line. Thats ...
  • 1,084
7 votes
Accepted

Use telnet to check that VNC port is open

Yes it is correct... If it were open you would get a blank screen, and if it were closed, it would say connection refused. Timing out is the same as closed in most cases.
  • 166
6 votes
Accepted

Best way to restrict some SSH users to publickey authentication only (disable password authentication)

There's a nice summary of the difference between ChallengeResponseAuthentication and KbdInteractiveAuthentication at http://blog.tankywoo.com/linux/2013/09/14/ssh-passwordauthentication-vs-...
  • 4,467
5 votes

Log out graphical user from command line

Any user with admin privileges can log them out using launchctl if it is a post 10.9 system. sudo launchctl bootout gui/$(id -u <username>) will teardown the user's temporary session and return ...
5 votes

ssh-keygen does not create RSA private key

Some elaboration on the above answers to provide a clear path for both the public and private key. You can directly export (-e) your ssh keys to a pem format: For your public key: cd ~/.ssh ssh-keygen ...
5 votes

how can i modify max memory-limit in php.ini in docker container

Depends on the image, but usually it's enough to do ENV PHP_MEMORY_LIMIT=128M inside the Dockerfile. Beware: the unit is a single letter, M for MB (or G for GB). Otherwise it will silently ignore the ...
4 votes

ERROR 2002 MYSQL socket /tmp/mysql.sock

I know this is an older post, but I spent the last hour or so bouncing back and forth between serverfault, StackOverflow, and DataBase administrators trying to figure out how to solve this issue after ...
4 votes

Are MAC ID passed via DHCP Relay

Strictly speaking, yes. The client hardware address is a data field that will be in both the DHCPDISCOVER message (which won't leave the LAN) and the DHCPREQUEST message, which will be relayed by the ...
  • 35.8k
4 votes
Accepted

How to stop hidden mac hidden files are showing in other systems?

Adobe has some notes and a unix command on this subject. It seems that it could be run before taking the image or after restoring it (providing the destination is a unix-like system). sudo find / -...
4 votes

Is it possibble to reboot a remote MySQL server on Ubuntu from a program or script on a Mac?

You ever thought about monitoring the MYSQL Server? Maybe Nagios is too big but whats with a script and a cron or monit is also very lightweight. Monit provides a very easy basic webfrontend where ...
  • 41
4 votes

Is the MAC adress visible for non-internal network users like a websites?

Not in IPv4, as the MAC is only contained in the headers of the ethernet frame that gets discarded when the router forwards it elsewhere. For IPv6, the MAC address can be part of the IPv6 address (...
  • 97.9k
4 votes

smb with dfs on mac

As a possible alternative you can create a stretched cluster with FileServer role between two locations using StarWind VSAN. Then you can share the data using NFS protocol instead of SMB. Here is ...
  • 8,838
3 votes

Why does local host say "It Works"?

Use apachectl -S (mac) to list the loaded configuration and to see all your loaded virtual hosts. Probably your project's .conf file is not in that list.
  • 131
3 votes

nginx symlinks permission denied / 403 Forbidden on Mac OSX

I just ran into something similar. Turns out one of the directories along the way to the target had too-restrictive permissions. chmod 755 $HOME fixed it in my case.
3 votes

Setting up a private server for Windows and Mac Computers

Mac OSX has Active Directory support. Here's a best practices document from Apple. You should be able to use Active Directory to provide both logins and file shares.
3 votes
Accepted

Puppet Duplicate declaration: Class

You are declaring it twice. Once with the parameter values '/var/root', 'root', the other with the parameters $home and $user. You probably should be making jenkins_dotfiles a defined type, not a ...
  • 985
3 votes

Citrix Receiver for Mac: "You have not chosen to trust"

You know the storefront url ? go in it with safari and check with safari how the certificate react. I suspect SHA-1 use in the certificate, if so you might have to redo the certificate
  • 16.5k
3 votes

how can i modify max memory-limit in php.ini in docker container

Adding the following line inside your Dockerfile do the job for me RUN echo 'memory_limit = 2048M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
  • 31
3 votes

SSH does not take server specific port config on Mac

You didn't specify the port number in your command. You didn't specify the alternate hostname you configured in your .ssh/config file in your command. You must do at least one of these. You'll also ...
3 votes

How does the A record change over time by running a DNS query?

Since you didn't post any output to your command I'll show the answer section of two subsequent queries: www.wikipedia.org. 21297 IN CNAME dyna.wikimedia.org. dyna.wikimedia.org. 57 IN A ...
  • 5,540
2 votes

Log out graphical user from command line

A nice utility to add to your Terminal is the "logout" command, to be used like: logout UserName Here the how to: Edit your .bash_profile nano ~/.bash_profile Add this line: logout() {sudo ...
  • 121
2 votes

openVPN Mac(Tunnelblick) all traffic over VPN

I was in the same situation and researched it a bit. I've registered an issue on TunnelBlick. The immediate workarounds are described in OpenVPN wiki. The method 2, override, looks the most simple. ...

Only top scored, non community-wiki answers of a minimum length are eligible