Questions tagged [ssh]
SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.
8,238 questions
1338
votes
13
answers
5.3m
views
How to copy files from one machine to another using ssh
I am using a Linux (CentOS) machine, and I have already connected to another system using SSH.
Now, my question is: How can I copy files from one system to another system?
Suppose, in my environment, ...
745
votes
32
answers
1.4m
views
Why am I still getting a password prompt with ssh with public key authentication?
I'm working from the URL I found here:
http://web.archive.org/web/20160404025901/http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/
My ssh client is Ubuntu 64 bit 11....
703
votes
13
answers
899k
views
How to force ssh client to use only password auth?
If I use pubkey auth from e.g.: an Ubuntu 11.04 how can I set the ssh client to use only password auth to a server? (just needed because of testing passwords on a server, where I default log in with ...
599
votes
7
answers
582k
views
Scroll inside Screen, or Pause Output
I use screen for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA).
The output ...
591
votes
14
answers
1.7m
views
How to forward X over SSH to run graphics applications remotely?
I have a machine running Ubuntu which I SSH to from my Fedora 14 machine. I want to forward X from the Ubuntu machine back to Fedora so I can run graphical programs remotely. Both machines are on a ...
499
votes
5
answers
390k
views
How does reverse SSH tunneling work?
As I understand this, firewalls (assuming default settings) deny all incoming traffic that has no prior corresponding outgoing traffic.
Based on Reversing an ssh connection and SSH Tunneling Made ...
468
votes
2
answers
612k
views
How to list keys added to ssh-agent with ssh-add?
How and where can I check what keys have been added with ssh-add to my ssh-agent?
432
votes
4
answers
516k
views
Specify identity file (id_rsa) with rsync
I need to make periodic backups of a directory on a remote server which is a virtual machine hosted by a research organisation. They mandate that access to VMs is through ssh keys, which is all good, ...
361
votes
24
answers
553k
views
How can I run ssh-add automatically, without a password prompt?
I want to communicate between several computers on my network (static Ethernet), through SSH. In order to do that I need to run ssh-add every time I log in on a specific machine.
What can I do so it's ...
335
votes
11
answers
399k
views
Copy a file back to local system with ssh
If I'm logged in to a system via SSH, is there a way to copy a file back to my local system without firing up another terminal or screen session and doing scp or something similar or without doing SSH ...
333
votes
6
answers
223k
views
Multiple similar entries in ssh config
Say I want to configure my ssh options for 30 servers with the same setup in my .ssh config file:
host XXX
HostName XXX.YYY.com
User my_username
Compression yes
Ciphers arcfour,...
313
votes
2
answers
204k
views
What's ssh port forwarding and what's the difference between ssh local and remote port forwarding [duplicate]
I feel confused about ssh port forwarding and the difference between ssh local and remote port forwarding. Could you please explain them in detail and with examples? Thanks!
309
votes
11
answers
343k
views
Keep processes running after SSH session disconnects
I sometimes have long-running processes that I want to kick off before going home, so I create a SSH session to the server to start the process, but then I want to close my laptop and go home.
Later, ...
308
votes
7
answers
501k
views
What do options `ServerAliveInterval` and `ClientAliveInterval` in sshd_config do exactly?
I found this question, but I'm sorry I don't quite understand the settings on the two variables ServerAliveInterval and ClientAliveInterval mentioned in the accepted response. If my local server is ...
305
votes
6
answers
416k
views
How to avoid being asked passphrase each time I push to Bitbucket
I set up my ssh stuff with the help of this guide, and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that ...