Questions tagged [ssh]
Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.
866
questions
13
votes
1
answer
45k
views
Why does SSH hang at the end of these commands and how can I make it exit?
I run this:
ssh -t -vvv -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} <<EOI
# Setup Oracle Java
...
# Install dependencies - mysql must be built from source, ...
13
votes
4
answers
33k
views
Haproxy for SSH name based proxying
I have a host machine with several lxc containers. I am trying to give ssh access to containers directly based on domain names. For this I have tried setting up HAProxy. Could achieve this easily with ...
13
votes
8
answers
5k
views
Save me from gibberish terminal
While logged in to a remote ssh session, sometimes I do cat to the wrong file (a binary or a diretory) and the display converts to gibberish. The only way out is to close the terminal and open a new ...
13
votes
2
answers
22k
views
SSH tunnel to home network, and access router web interface
I'm trying to use an ssh tunnel from a remote location to connect to my home network and access the router web interface.
I have SSH access to the home network, and I can connect to the gateway ...
12
votes
2
answers
13k
views
How to chain SOCKS proxies?
Preface: What I’m looking for are explicit instructions, in the same format as above. That is, something like run: “…run command X on machine A, then command Y on machine B…”
I have a working socks ...
12
votes
2
answers
3k
views
How are public keys "sent" to servers, and how are private keys "used" for SSH?
There are two Linux machines, A and B. Scripts running on A need to be able to SSH into B. So A generates a public key (probably an ssh-keygen-generated id_rsa.pub), and then uses its respective ...
12
votes
5
answers
83k
views
How can I copy files with SSH?
I am trying to copy a file from my other computer, to another computer. (both running Ubuntu 9.10)
So, I've ssh'ed into the other computer; I cd to the directory; and I entered cp File.zip /home/me/...
12
votes
4
answers
29k
views
SCP from one external server to another
I am trying to use SCP on my local server to copy a file from one remote server to another remote server (both remote servers use a custom port (xxxx)
I am trying:
scp -r -P xxxx [email protected]....
12
votes
6
answers
21k
views
Unknown linux process with random command
I have a unknown process when I run top:
When I kill the process it is coming again with another random name.
when I check the rc.d levels and init.d there are many random name similar like this one ...
12
votes
2
answers
34k
views
How can you avoid being asked to enter your BitBucket password when you push to BitBucket wiki?
I'm not sure if everyone experiences this - when I edit a BitBucket wiki locally (through a git repository) I have to enter my BitBucket password for every pull and push.
Is there any way around this?...
12
votes
5
answers
28k
views
How can I run something as Administrator via Cygwin's SSH?
I'm trying to connect to a remote Windows 7 box that needs a setup change or two. I've got access to an Administrator account via Cygwin's SSH server, but Cygwin won't let me run Administrator-...
12
votes
1
answer
8k
views
OpenVPN vs. SOCKS proxy
I've been trying to set up a secure connection over which I can browse the internet, and it seems like there are two options, and SSH SOCKS proxy or OpenVPN (at least, those two are what I have found, ...
11
votes
2
answers
17k
views
How to use gpg and SSH together? [duplicate]
Possible Duplicate:
Are GPG and SSH keys interchangable?
How to use gpg and SSH together?
I know the basic procedures of 1) using gpg to encrypt and decrypt text files and 2) generating and ...
11
votes
4
answers
76k
views
putty 0.61: why do I see "Access Denied" message after I enter my login id?
I use putty to login to my RHEL 5.3 server. I'm prompted to enter my login as "login as" and I enter my login Id. As soon as I press Enter, I see a "Access Denied" message following which I'm prompted ...
11
votes
3
answers
24k
views
Does Windows 10 have a built-in SSH server?
Does the release version of Windows 10, as rumored, have built-in SSH server functionality? If so, how do I go about enabling it?
11
votes
3
answers
45k
views
Opening Browser in remote machine through ssh
I need to open browser with specific url using ssh through a remote machine, i have enabled password less connection, i am able to get command o/p which run on remote machine using ssh, but how can i ...
11
votes
3
answers
20k
views
How to git clone private repos within Vagrant VM, using host's SSH keys?
I'm able to use PuppetLabs vcsrepo to clone public git repos, but I'd like to also be able to clone private repos, using the host's SSH keys.
What would the configuration look like for Vagrantfile ...
11
votes
3
answers
11k
views
ssh agent forwarding on Windows 10
When I ssh from my macOS client with AgentForwarding enabled into a Windows 10 host, I cannot access the client keys on the host.
The built-in OpenSSH server on the Windows host has ...
11
votes
1
answer
22k
views
Sending change virtual console command in PuTTY
I'm trying to use PuTTY to change the virtual console on Linux via the usual key commands - Alt + F1 or Ctrl + Alt + F1 etc. However this doesn't work.
Switching TTY should be simple and is something ...
11
votes
1
answer
4k
views
Disable mouse reporting in a terminal session after tmux exits unexpectedly
I currently use iTerm2 and frequently SSH into remote servers and start a tmux session. On all of those servers, when SSH'ing into them, I automatically create a tmux config that enables mouse ...
11
votes
4
answers
13k
views
Run a GUI app on remote computer from SSH
I want to run a GUI application on my Ubuntu computer, but it should started by a shell script on my Debian server trought SSH.
Is this possible?
11
votes
2
answers
9k
views
Auto-reconnecting SSH connections with a specific 'screen' session
I typically have several terminal windows each of which is connected via ssh to a remote server. In each window I work using the gnu screen program, to ensure persistence of the interactive processes ...
11
votes
3
answers
15k
views
Not authorized to control networking in SSH console
I want to control Network manager from the command-line. This worked well enough in Ubuntu 10.04 (with cnetworkmanager, nmcli is another possible choice).
Since the upgrade to Ubuntu 10.10 however, a ...
10
votes
7
answers
6k
views
Auto propagation of bash settings across many machines?
I need to console to many machines through SSH. Including Linux, Mac, mobile devices, virtual machines. Sometimes I need to login to more than 10 machines in one day.
I enjoy my personal .bashrc or ....
10
votes
1
answer
7k
views
Tell git which private key to use for a user without home folder
I was reading the question Tell git which private key to use, and the answer doesn't apply for a case were the user doesn't have any home directory.
We're setting up a Jenkins server right now, and ...
10
votes
4
answers
5k
views
Can I get OpenSSH's sshd to accept a login for a non-existent user?
I'm trying to set up sshd to do some funky things on a dedicated server. (Which is to say, don't worry about why I'm asking such a strange question; I'm just experimenting to see how I can abuse ...
10
votes
4
answers
40k
views
How to have multiple windows in a SSH terminal session?
From Mac OSX I login to a remote server that handles parallel computing jobs. I am not able to install anything on this server as it is administered by the university.
I have multiple jobs running and ...
10
votes
4
answers
12k
views
How do I view the job queue in lftp after it has moved to a background process?
I've just started using lftp for remote transferring files on my Raspberry Pi running Debian. I know how to transfer the files, and use queue and jobs to add and view transferring files.
However, I'm ...
10
votes
3
answers
10k
views
How can I set in the bitvise ssh client, the tunnel automatic connect if open windows or restart windows?
Now the tunnel works if I open the bitvise application and click the login button. I want to change that. I want the tunnel automatic open if open windows or restart windows
Where I can set the ...
10
votes
3
answers
12k
views
Can I set up KiTTY to send F7 press instead of bringing up Print dialogue when F7 button is pressed?
Can I set up KiTTY to send F7 press instead of bringing up Print dialogue when I press F7?
I make intense use of Midnight Commander and its editor, which both rely on F7 (to create a directory and to ...
10
votes
5
answers
10k
views
How to make HOME or END keys work in mc running on OS X (ssh)
I installed MacPorts on OS X 10.5 and I found out that when I connect to the computer using SSH and use mc - Midnight Commander - the HOME and END keys do not work.
I have to mention that I'm using ...
10
votes
3
answers
25k
views
How to change the number of columns on a putty window to more than the screen width?
I am on windows and often have to ssh to linux machines. Though as much as I would love to have an alternate ssh client, none really comes part to Putty. One thing or the other always breaks, even in ...
10
votes
1
answer
22k
views
How to get a persistent reverse SSH tunnel using autossh?
(just asked this on SO but was adviced to take it here)
I managed to create a reverse SSH tunnel between a Raspberry Pi 2 and a server of mine (server which has a static IP) and it works fine. The ...
10
votes
5
answers
128k
views
OSX: ssh: Could not resolve hostname: nodename nor servname provided, or not known
There are two mac hosts in my Wi-Fi network (laptop and Desktop)
I'm trying to ssh laptop from Desktop - everything works fine
When I'm trying to ssh from laptop to Desktop doing this:
ssh macpro....
9
votes
5
answers
22k
views
How to authenticate to a VM using Vagrant up?
Authentication failure during Vagrant Up, while vagrant ssh and ssh vagrant@localhost -p2222 works
I would like to execute a shell script using Vagrant at boot. Vagrant is unable to Authenticate, ...
9
votes
4
answers
11k
views
Vim and mouse with ssh from Mac to Linux
I certainly know it's possible to make the mouse work in Vim on a remote session to a Linux machine from my Mac, but I haven't figured out just how.
Daily vim gives a tip on making it work but if I ...
9
votes
3
answers
17k
views
DNS over SSH Tunnel
I want to setup my OSX system such that all network traffic is done through an SSH tunnel.
I've written a small script for this purpose, and these are the commands executed by it:
# setup tunnel
ssh -...
9
votes
2
answers
73k
views
pscp copy file remotely from Windows to Linux
I need to copy file from my Windows XP system to remote Linux system.
Win location : c:\1.txt
LInux location:/tmp
What should be the command?
EDITED: pscp is recognized and OK on my PC.I CAN ...
9
votes
1
answer
14k
views
Can I access a remote web server over an SSH connection?
I recently set up a remote server, which I have running the bare minimums currently. I set up OpenSSH and can access the machine through one of my domain names (using an A-type DNS record). I also ...
9
votes
1
answer
2k
views
How to go through this duplicity stalled connection?
I am trying to set up backups via duplicity.
Here is the use case:
~$ duplicity --encrypt-key CA17A4FA --progress --ssh-options="-l 8192" ~/Documents/ ssh://my.distant.host/save/docs/Documents
Local ...
9
votes
3
answers
24k
views
How to set up SSH auth with Windows/git/tortoisegit/putty/Synology
I'm hopelessly confused. I am trying to stop tortoisegit from prompting me for a password every time I pull/push (I don't mind once for each time I log on to Windows, but thereafter I want it to be ...
9
votes
6
answers
29k
views
Putty freezes at random when logging into a remote machine in another continent
I have to ssh to a remote machine in Europe from Asia every day for my work. But Putty freezes sometimes at totally random times and I have no choice but to close and re-open a new ssh session. It's ...
9
votes
3
answers
24k
views
sign_and_send_pubkey: signing failed: agent refused operation
I have tried every possible piece of command I could lay my hands on. I still get this. I spun a digital ocean droplet with ubuntu 16.04 on it. I followed the tutorial until I had to login in again ...
9
votes
2
answers
4k
views
Launching firefox on remote server causes local firefox to open the page instead
Right, this is strange. I am connecting from my laptop (LMDE) to a remote host (SUSE Linux enterprise) using ssh -X. I want to launch a Firefox instance running on the remote server so I can have ...
9
votes
3
answers
33k
views
How to change ssh port on windows 10?
I'm working on aws cloud image which requires an ssh connection to connect. But my service provider has blocked the port 22 so I can't connect to cloud image. So how can I change Ssh configuration to ...
9
votes
1
answer
2k
views
SSH to Vmware virtual machine with NAT network [duplicate]
right now I am able to ssh to host over internet and ssh from host to the virtual machine. What I want to do is ssh directly to the Guest machine from outside.
I tried to do this using iptables:
...
9
votes
3
answers
16k
views
rsync N newest files in a directory
What would be the easiest way to go about rsyncing the n newest files in a directory to a remote server?
8
votes
2
answers
11k
views
SSH Tunnel via native Windows bash: Address already in use
I am trying to setup a SSH Tunnel on my Windows machine. Since the bash was introduced in 1607, i don't want to use cygwin anymore. The problem is that the bash always returns the error message: bind: ...
8
votes
3
answers
6k
views
Set PATH when SSH into MacOS
My problem is
$ ssh localhost fswatch
bash: fswatch: command not found
when without SSH command (i.e. fswatch) works fine.
I found that PATH in SSH session is default Mac's
$ ssh ...
8
votes
1
answer
16k
views
/dev/tty: no such device or address - only in a script
I'm pulling my hair out over this. I've looked over all of the google results for /dev/tty : no such device or address, none of them apply to what I am doing / none of the solutions are successful.
I ...