Questions tagged [ssh]

A network protocol that allows data to be exchanged using a secure channel between two networked devices

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Change remote directory after connecting via ssh

I want to make a ssh-config, that automatically changes the folder after connecting. I heart of a possibility in the linux universe with the configuration in ssh-config-file. Something like this: ...
0
votes
0answers
23 views

Can't solve 'passwd: Authentication token manipulation error' error

I'm trying to SSH into a Hills server for my local junior college. The system asks for my (current) UNIX password, however, when I enter the password I get the following error: (current) UNIX password:...
0
votes
0answers
29 views

Permission denied when trying to generate ssh key on Mac?

I've changed X11Forwarding in my sshd_config to "yes" and uncommented it. I've installed XQuartz. But when I run the following command:ssh-keygen -t rsa -f~/.ssh/my_key -C shisui I get "...
1
vote
0answers
27 views

VPN client software for macOS which allows for split tunnelling incoming SSH connections

As @bmike explained in Cannot connect to Mac (Big Sur) running SSH server while connected to VPN a VPN client allowing for split tunnelling is required in order to connect to a host via SSH which has ...
1
vote
1answer
19 views

AppleScript to add URL to Pi-hole whitelisting

I'm writing a script to easily add sites to my Raspberry Pi's Pi-hole installation. I've got the following: tell application "Terminal" reopen activate do script "ssh pi@192....
2
votes
1answer
71 views

Cannot connect to Mac (Big Sur) running SSH server while connected to VPN

I cannot connect to my Mac via SSH when I run a VPN client on it. When I connect to the public IP address of my Mac, the return packets are being routed over the VPN. I need to force these packets to ...
1
vote
0answers
30 views

sshd stops working on Big Sur after a while when accessible from the Internet

My sshd is configured to accept only public key authentication and my ISP router forwards the port 22 to my MacPro so I can access it from anywhere using Internet. This has worked for years. Since I'...
1
vote
2answers
63 views

SSH into another mac on different network using port other than 22

I tried to access one of my mac on a different network using a specified port: 1234 ssh remoteuser@remoteip -p 1234 but I got the result that connection refused. How do I specify the port I want to ...
1
vote
1answer
15 views

How to get an ssh tunnel started every time my Mac boots?

I'm trying to run a script at startup to tunnel to a remote host over a random port. I want to leave a cookie on the remote machine to say which port I chose. Something like this: # to make a record ...
1
vote
1answer
63 views

Must we use ssh-agent nowadays?

In the past, I never had to use ssh-agent and everything worked fine. But I noticed, on GitHub, it is asking people to use ssh-agent, even if we don't use it, it seemed fine. So I just ignore that ...
0
votes
0answers
28 views

How to start an LaunchAgent on login via ssh?

I want to start an agent when I log in on my machine via ssh. I created the plist and set the key LimitLoadToSessionType to StandardIO according to the quite old Technical Note on daemons and agents, ...
0
votes
0answers
19 views

when ping (or ssh) a ip or a domain on macOS, always timeout

Problem: When I tried to ping google.com or my own server on macOS terminal, it always timeout. PING www.google.com (172.217.2.196): 56 data bytes Request timeout for icmp_seq 0 Request timeout for ...
0
votes
0answers
21 views

Resolve SSH hostname / DNS address on different network

I have a server running at home, and to SSH into it, I run ssh server (hostname is configued in ssh config). When I'm not on my home network, I ssh through the external IP address - which is ...
0
votes
1answer
25 views

Share / view files betweek Mac OS X and Linux (Ubuntu) using sshfs and GUI

I just want to access file from Mac OS X (Big Sur / 11.2.1) on my Linux (Ubuntu 20.04.2 machine) and vice versa. I did not like the idea using SMB - or should I really do it?? What I did OS X : ...
0
votes
0answers
77 views

Add existing SSH key to new Mac

I'm a bit new to SSH and it's technique, but used it to connect to websites on my old MacBook. Since I now have a new one, I want to use the same key if thats possible. I saved the (ssh-rsa) key in ...
0
votes
0answers
47 views

Problem with ssh and ARD/Screen Sharing with Big Sur on a MacMini M1

I have a recent MacMini M1 running an up-to-date Big Sur that I am having trouble with SSH and ARD/Screen Sharing. If I restart the machine, all type of access fail until the moment I log in with my ...
0
votes
0answers
21 views

error when using scp to copy files to remote mac

I'm having a problem using rsync (or scp) to backup a large number of files from my old Macbook Air (running 10.13.6) to my new Macbook Air M1 (running 11.1). I initially noticed the problem when ...
1
vote
1answer
22 views

ssh-keygen -R saying (wrongly) no matches found

I've come across the not-uncommon issue where ssh keys on a host have changed, so they don't match what's saved in my ~/.ssh/known_hosts file. When I connect (in this case via an Ansible playbook), it ...
0
votes
0answers
36 views

Run SSH on different port on MacOS

Description: I have 2 types of MacOS VMs in my environment: 1) admin@vm1 ~ % system_profiler SPSoftwareDataType Software: System Software Overview: System Version: macOS 11.1 (20C69) Kernel ...
0
votes
1answer
27 views

Reset Mac user password via SSH

I have a local Mac machine with Catalina that I haven't used in a while. I have forgotten the GUI password for the account, but I still can SSH into it because of my public key being on that machine. ...
0
votes
1answer
46 views

MySQL connection via SSH tunnel

I've been trying to set up a SSH tunnel with VPN on my macbook with Big Sur 11.2, but it doesn't seem to work. On my linux machine, I can simply turn on the VPN and make a SSH-tunnel. Then I can just ...
0
votes
0answers
79 views

Cannot ssh to remote hosts on any port other than 22 from macOS

I recently switched the ssh listen port on my OpenWRT server running Dropbear from 22 to a random one to prevent the system log from being flooded by someone brute-forcing. Everything is fine and I am ...
2
votes
2answers
86 views

How do I force my Mac to log in to an account remotely?

It’s possible to restart a Mac from the command line (sudo shutdown -r now). It’s possible to log out from a Mac from the command line (sudo pkill loginwindow). But is it possible to force a Mac to ...
0
votes
0answers
20 views

Log into a mac mini working as a server that is connected to a VPN

I have a Mac Mini (late 2014) that I want to connect to a VPN (for work), but I also want it to act as a server, so I can work from my laptop (running Linux). I basically need the Mac for the VPN and ...
0
votes
0answers
23 views

How do I auto connect to wifi upon reboot without logging in again?

I am currently running macOS Big Sur on a 2016 mbp. I would like for the wifi to automatically connect whenever I reboot. I'd like for this to happen because I SSH into the machine when the laptop lid ...
2
votes
0answers
473 views

OpenVPN to home network connections not working on macOS Big Sur

I'm using PIVPN with OpenVPN to connect to my home network anywhere in the world. I have three profiles, one for my iPhone and one for my MacBook Pro and one for a windows laptop. When I connect to my ...
2
votes
1answer
626 views

What version of OpenSSH is available on macOS Big Sur (11.0.1)?

I am currently running Mojave which has the following > ssh -V OpenSSH_7.9p1, LibreSSL 2.7.3 Before moving to macOS Big Sur, I'd like to know the default version of SSH on it.
1
vote
4answers
184 views

Automate workspace setup

I'm a software developer and I often have to switch between different projects, each with its own environment setup. Some actions I have to do each time include: creating ssh tunnels connecting ...
1
vote
1answer
768 views

suspect message “sshd-keygen-wrapper would like to receive keystrokes from any application”

I am receiving this message about "sshd-keygen-wrapper would like to receive keystrokes from any application", here is a screenshot: I find it suspicious... this binary is located at /usr/...
0
votes
0answers
22 views

SSH Aliases in Finder

I have a feeling this is a new bug in macOS, but could also be to do with some misconfiguration on my machine. As this worked until recently. I'm on macOS 10.15.7 (19H2). I use the Finder's Connect ...
5
votes
2answers
109 views

Passwordless SSH between MacOS and MacOS not working

I know there are many tutorials, including instructions on this forum but I find that SSH still asks me for a password. Here is what I tried on the local machine: ssh-keygen -t rsa # ...
0
votes
1answer
40 views

Has Catalina broken the logging into external machines?

So I've been trying to login to servers and MySQL databases recently and it seems that they all come back with either no error or no connection available errors, and I'm wondering how exactly one ...
0
votes
0answers
31 views

Remote desktop into iMac while someone is on a separate account?

I'm using an iMac 21.5-Inch (Late 2015). I have a son who has a full-time job, and his only option is to use our iMac. Is there a way to remote desktop into my account while he's on his? If so, can I ...
1
vote
1answer
528 views

Can you provide further input after running one script over SSH in iOS

I have a Linux server that can be accessed through SSH. I'm using the iOS shortcuts app to try and run scripts over SSH. If I try to do a Linux command like sudo apt-get install package, the shortcuts ...
0
votes
0answers
15 views

SSH Bypass Google 2FA When On The Same Network

Because of a few different applications I need to use, I need to be able to bypass Google's 2 Factor Authentication pam.d module when an SSH connection is coming from the same network. There is very ...
0
votes
2answers
30 views

How can I remember the SSH key password on a remote system that SSH's into a second remote system?

I have three systems: New MBP (Catalina) Old MBP (El Capitan) Raspberry Pi (Raspbian Buster) I want to SSH from the New MBP to the Old MBP, and then SSH from the Old MBP to the Raspberry Pi. My ...
0
votes
0answers
18 views

Enable Remote Management through terminal only works when I manually click off and on?

I am able to turn the Remote Management on. But it doesn't work. For it to work the only way is i have to turn it off(after i used terminal command to turn it on) and turn it back again by checking ...
0
votes
0answers
15 views

Hidden user cannot login

I have a hidden user on my neighbours MacBook pro which I user to manage some scripts for backing up his huge media library, he is a music producer and is technically challenged I used the sudo dscl . ...
0
votes
0answers
23 views

Unable to forward the ssh cert.pub to access the target machine via bastion

I have a vault setup, which basically uses the signed ssh pub keys to connect to the bastion and the target machines. After creating a signed id_rsa-cert.pub file, I will be using it like " ssh -...
1
vote
0answers
22 views

redirect safari traffic through ssh

Hi I'm following this tutorial to redirect safari traffic through ssh, https://helpdesk.eoas.ubc.ca/kb/articles/how-to-ssh-tunnel-a-connection-using-macos which is first ssh -D 8080 -N user@address ...
3
votes
1answer
2k views

SSH not working after macOS 10.15.6 update

I am experiencing a timeout connection error when using ssh from my MacBook to connect to an external server. The problem started immediately after having updated to macOS 10.15.6. I could connect ...
0
votes
2answers
40 views

Log in to a monitor-less Mac over the network

Is it possible to share the screen OR remotely ssh login to a Mac that has no user logged in, i.e. it's sitting on the login screen after power-on/restart? The Mac in question uses macOS 10.15.6(ish). ...
0
votes
0answers
13 views

Properly close/unmount an sshfs volume that was already disconnected?

After using sshfs like this: sshfs johndoe@example.com:/home/johndoe/somedir ~/mnt/foo Then /home/johndoe/somedir on the remote machine becomes over SSH through ~/mnt/foo on my local machine. Now ...
0
votes
0answers
81 views

Whats the correct way to reboot a Mac which is managed by Apple Remote Desktop?

I have a headless 2012 Mac Mini running macOS Catalina which is managed with Apple Remote Desktop and ssh by my other MacBooks (running macOS Mojave). The problem is that when I need to reboot the ...
1
vote
0answers
928 views

How can I use ssh -X on macOS Catalina? [Warning: untrusted X11 forwarding setup failed: xauth key data not generated]

How do I get ssh -X working on macOS Catalina (10.15)? ssh -X linux_host works from another linux machine. On a fresh install of macOS Catalina, I have installed MacPorts and xorg_server. However, ssh ...
0
votes
0answers
7 views

Simultaneous remoting onto the same physical memory address.(no Windows multipoint)

So, I have my Jailbroken Iphone 10x running sftp AS the host to my Windows 10 laptop. Within the sftp shell on the iphone: #sftp @[my.laptop.remote.ip] sftp> put -r / /my/remote/directory/...
0
votes
2answers
402 views

Port Forwarding an SSH Connection on macOS

I have been trying to use SSH over the internet to connect to a few different computer on my network. Unfortunately, it only seems to work on the computer that is set to the forwarded port of 22 (ssh ...
3
votes
2answers
478 views

Add a user that only has access to computer via ssh

I'd like to have a user on my local computer to only have access via ssh. I don't want (don't need) this user to have the ability to login in to the laptop as a standard user. The only purpose for ...
1
vote
0answers
41 views

Unwanted dash (“-”) in implicit ProxyCommand from ProxyJump

Intro When open an ssh URL scheme (ssh://[host]), the Terminal app will be launched to handle the request, and ssh is launched without a shell. Symptom In my case, if the host is configured to use ...
0
votes
0answers
21 views

hide files With certain extension when mounting a directory

When working on a remote Linux desktop, I am often finding myself mounting the remote folder to look up the outputs on my mac: umount -f /Volumes/somename mkdir /Volumes/somename sshfs -o volname=...

1
2 3 4 5
16