Skip to main content

All Questions

Tagged with
1 vote
2 answers
4k views

Script to auto execute creation of ssh tunnel

I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here. I'm on a Mac, connecting to a linux machine. I can set up ...
0 votes
1 answer
40 views

Is it possible to set up a remote login session where a specific user only has access to certain folders, and can only run one executable?

I have a server where I'd like to grant a user the ability to log in remotely, but restrict the session in two specific ways: They can only access a certain set of folders on the computer, and for ...
1 vote
1 answer
5k views

How to ssh from Linux client to OS X host without error message “ssh_exchange_identification: Connection closed by remote host”?

My LAN comprises a desktop computer running Linux (Debian Wheezy), a MacBook with OS X Mavericks, and a modem-router; ssh with Linux host and OS X client functions well - no problems connecting from ...
0 votes
1 answer
667 views

How do I copy text from vim on a remote host in Terminal, to local MacOS clipboard?

I've googled the heck out of this but nothing I try solves the problem. Help? Context I'm running vim on a remote linux machine, which I ssh to in Terminal.app. I have root on the remote machine, so ...
1 vote
0 answers
339 views

scp: ambiguous target when attempting to copy directory with an apostrophe and spaces in the name

I am trying to use scp to copy a directory by using ssh through windows terminal to connect to my mac and then use scp to copy a folder to my raspberry pi; I have tried many variations such as scp -r &...
0 votes
1 answer
3k views

ssh localhost, getting permission denied (password). (Windows 11)

I am trying to ssh into my windows 11 machine from my mac but continue getting a Permission denied, please try again. After a couple of failed attempts I get username@localhost: Permission denied (...
0 votes
2 answers
278 views

SSH login@ip@gateway through config+VSCode

I can successfully connect from my macbook+VPN to my corporative cloud server through ssh with this command (passwordless, using my id_ed25519 key): ssh login@ip@gateway -A But I need to connect to ...
3 votes
5 answers
4k views

Why rsync keeps sending same files each invocation?

I'm using rsync to copy file from Linux to Mac over SSH. My command looks like this: rsync \ --exclude FOO \ --exclude BAR \ -e ssh \ -rclpvih \ --delete \ --stats \ /local/...
3 votes
2 answers
25k views

OSX 10.11 Bad SSH2 KexAlgorithms '+diffie-hellman-group1-sha1'

I have updated my /etc/ssh/sshd_config file based on the answers provided here - OSX 10.11 enable ssh diffie-hellman-group1-sha1 https://stackoverflow.com/questions/26424621/algorithm-negotiation-fail-...
2 votes
1 answer
4k views

ssh -X warning: X11 forwarding request failed on channel 0

When I run ssh -X my_host I get the error: "X11 forwarding request failed on channel 0". (ssh -Y my_host gives the same error) My host is a Gentoo Linux machine and my client is a macOS ...
13 votes
3 answers
19k views

Sending key via ssh or using mouse to activate Target Display Mode?

Is it possible to send a keystroke via SSH?  I want to be able to send ⌘ (CMD)+F2 via ssh from/to Mac OS X.  If that's not possible, a mouse solution would also be good. The reason I need this is ...
0 votes
0 answers
33 views

how to ssh into linux lab from Mac?

Facing problem to ssh into Linux from mac. ssh: connect to host 35.184.51.144 port 22: Operation timed out
100 votes
2 answers
179k views

How do I clear out the ssh-agent entries (on Mac OS X )?

I'm running Mac OS X, and it appears that after SSHing to several machines, using identity files, my 'ssh-agent' builds up a lot of identity / keys and then sometimes offers too many to a ...
1 vote
1 answer
589 views

SSH Permission denied when subnet is /31

I am trying to make a point to point ipv4 link with a device running Ubuntu 18.04 . if I set the device to 192.168.1.48/31 and in then OSX I set my ethernet dongle to 192.168.1.49/31, I am able to ...
0 votes
1 answer
32 views

How can I sign in to my VPS/shell account without having to type my password each time?

How can I sign in to my VPS/shell account without having to type my password each time? I have tried pasting a shell script including Prolog code but the password doesn't paste properly.

15 30 50 per page
1
2 3 4 5
7