SSH, otherwise known as "Secure Shell", is a method for securely connecting to a remote computer.

learn more… | top users | synonyms (1)

6
votes
3answers
8k views

How to copy files from remote server to local machine?

I use ssh mylogin@server to connect to a remote server... I am wondering how to copy the whole files from there to my local machine... One reason to do this, is that, I could not compile a latex file ...
6
votes
3answers
556 views

Use Linux commands on windows directories through ssh

Since I'm stuck with windows at work. I'd like to use a Ubuntu Server machine which i access through SSH from a windows machine to manipulate files on the windows machine. I've been moving files up ...
6
votes
1answer
2k views

how to backup/restore the host key in ssh server

I have a ssh server, and some clients have login it via key login. So the host identity of server has been stored in the known_host of clients. I want to reinstall the server, but I hope it never ...
6
votes
3answers
4k views

Cannot use gedit on multiple remote machines using ssh

After setting up the last of my 5 remote machines, I decided to test that the network was working well by connecting to each and opening gedit. To my dismay, when I tried to open gedit on the second ...
6
votes
3answers
3k views

How to put all traffic and on one interface and some traffic on another interface

At the moment I'm working at a company and the problem is they allow SSH on wifi but not on their wired network. At the moment I push everything through a vpn, but that gives overhead on an already ...
6
votes
1answer
7k views

how to set up a ubuntu server to be (securely) available from internet?

(apologize in advance, I'm a pro-windows newly converted to ubuntu... if my questions are obvious, please tell me). I want to build a ubuntu server continuously connected to the internet. I own only ...
6
votes
1answer
2k views

Get root privileges for nautilus on sftp connection

I use "Connect to server" option to sftp to remote computers, as a user which has sudoer privileges. But then, I cannot get root privileges to modify system files. How can I do this? (I know i can ...
6
votes
3answers
724 views

Can I log to a non-default shell?

I love fish. I have a nice Ubuntu 8.04 Server running some services. So I edited the /etc/passwd file, as I did in the past, to change my default shell from bash to fish. And ,yes, I made I typo (BTW: ...
6
votes
4answers
1k views

byobu and ssh-agent

byobu cannot connect to ssh-agent socket well. actually I can make just one connection via ssh-agent but if I try to establish another ssh connection using the agent, it doesn't work. I've tried ...
6
votes
1answer
626 views

How to set up an rsync backup to Ubuntu securely?

I have been following various other tutorials and blog posts on setting up a Ubuntu machine as a backup "server" (I'll call it a server, but it's just running Ubuntu desktop) that I push new files to ...
6
votes
3answers
2k views

SSH keys not working

I'm using ssh-keygen to generate a key on Ubuntu 10.10, then using ssh-copy-id to copy the key to two remote machines that are running 10.04 (one desktop, the other server). But here's the thing: I ...
6
votes
2answers
7k views

How to connect to existing X session without unlocking physical display?

I usually leave many programs running on my workstation and sometimes I need to use it remotely. So I need to connect to existing X session, while keeping physical display (workstation's monitor) ...
6
votes
1answer
11k views

How to run local shell script on remote server via SSH?

I want to run a local shell script on a remote computer with SSH. How can I do this?
6
votes
1answer
9k views

SSH into Ubuntu VM remotely

I dont have much experience on networking or linux, but I'm trying to ssh into an Ubuntu virtual machine from outside my home network. The Ubuntu virtual machine (VirtualBox) is running an a Debian ...
6
votes
4answers
2k views

Graphical ssh private key prompt not showing up

I recently stopped using a full desktop environment in ubuntu 11.10 (tired of unity) but I'm trying to get some of the desktop environment back. I'm currently trying to get the "Unlock private key" ...
6
votes
2answers
3k views

Do commands continue running after I close my ssh session?

For example, I ssh into a server and run a command say ... wget, then I close the terminial window. Do my download continue? Or does it depend on the app? If so how do I know?
6
votes
3answers
628 views

Using PKCS#8 encrypted private keys w/ ssh-agent

I'm setting up a new Ubuntu system (12.04.2 LTS) for Rails development and wanted to use an encrypted SSH private key as per this article. I can set up a standard ssh keypair using the instructions ...
6
votes
2answers
489 views

VPN for SSH, Internet for all the rest

Intro: Hi, I've been trying to get a VPN and ssh command to work together. And I've been successful to the point where I can get on the server with ssh user@hostname. But when the VPN is active, all ...
6
votes
3answers
4k views

How to manually trigger ssh add dialog box?

Running ssh-add at the command line no longer unlocks the ssh keys properly on my system (Ubuntu 11.10 with Unity). Even after I've run ssh-add, when I ssh to a server, I get a dialog box popping up ...
6
votes
2answers
6k views

Can I ssh (into a mobile device) via USB?

I have a tablet with a USB connection to a host computer. (Ideally the host is running Windows, but if absolutely necessary I could switch the host to be Ubuntu also.) I want to be able to SSH into ...
6
votes
3answers
4k views

Why is this rsync + ssh cron job giving me 'Permission denied (publickey)' errors?

I make frequent backups to a local drive which I want to sync daily to a remote server. The target server is configured for SSH key (no password) access only. Since my primary SSH key for that server ...
6
votes
1answer
195 views

Where can I find the fingerprint of 'bazaar.launchpad.net'?

I'd like to verify the RSA key fingerprint I'm shown, where would I find it online*? Please don't post random pages showing that fingerprint, it should be an official one. *) I know that's not the ...
6
votes
1answer
11k views

fork: Cannot allocate memory

I am frequently getting: fork: Cannot allocate memory when running commands over ssh. I have 4 GB of RAM and usually 2 GB free. This started happening since I upgraded to Ubuntu 11.10. I then need ...
6
votes
2answers
5k views

Can not connect remotly with X11 and SSH? err: Can't open display, What's wrong?

$ xterm works on the client computer In the client I have : $ echo $DISPLAY :0 in the config file in the server /etc/ssh/sshd_config: X11Forwarding yes X11DisplayOffset 10 trying to connect to ...
6
votes
2answers
3k views

Ubuntu 14.10 server startup

I install just the OpenSSH server on hardware that was running 14.04 Server. Besides the pages of checks the startup goes through, I believe it should recognize scroll lock from an usb keyboard, but ...
6
votes
2answers
198 views

How to prevent Ubuntu Server sleep/hibernation

I'm running the latest Ubuntu Server (quite literally downloaded & installed yesterday) on a box under my desk. I've got trac installed and OpenSSH. Intermittently both become unavailable, as if ...
6
votes
2answers
963 views

xubuntu xterm strange lag/echo issue with ssh

I have a xubuntu box and using its terminal everything is fine locally; but when I ssh to any server, the remote echo seems to be holding the last line until a key is pressed or the window is resized. ...
6
votes
0answers
1k views

SSH hangs about a minute after login [duplicate]

Possible Duplicate: Long wait time on login I am connecting from a Ubuntu Desktop 11.10 to a Ubuntu Server 11.10, over SSH using public key authentication. Problem is within about a minute ...
6
votes
1answer
1k views

How to start/configure pulseaudio remotely with ssh?

I have a remote machine to which I can ssh. On the remote machine there is a program that uses pulse audio to get input from a USB microphone attached to the remote machine. This setup works fine when ...
5
votes
4answers
44k views

Finding the ip address of another computer on the network?

Is there a program which can tell me the ip address of a computer when is connected to my network? A list of names or ip addresses. For example when my wife is on my main desktop computer I can ...
5
votes
2answers
8k views

SSH-Agent can't open a connection to authentication agent?

When I SSH into my firewall server, then attempt to ssh into another machine on the local network from there I get the following error: Could not open a connection to your authentication agent. ...
5
votes
3answers
6k views

How to generate a private-public key using ssh-keygen and make it authorized?

I want to generate a public-private key on Sever 1 and store it in a location which is not the default location. Thereafter, save the public key on Server 2; once again NOT at the default location. ...
5
votes
1answer
6k views

Unable to initialize frontend: dialog when using ssh

I am executing the following command over ssh in a testing environment, as root: ssh <remote_srv> "apt-get autoremove" In my sshd_config I have "PermitRootLogin without-password" and I have ...
5
votes
1answer
6k views

Intellij unable to fetch from git

I've cloned an existing git repository. Git is working fine when I pull using command line. However, when I try doing the same from Intellij, it says Fetch failed. Fatal : Could not read from remote ...
5
votes
4answers
8k views

How do i transfer files over ssh after sudo?

I have access to a box over ssh and there are some files i'd like to transfer to another machine, but those are only accessible under another account so if i ssh with 1, then sudo 2 i can browse them ...
5
votes
2answers
1k views

How to access open terminal with running process using SSH?

I have two computers with Ubuntu 12.04 and 13.10 both desktop versions. On the 12.04 I have opened terminal and process running in it. The process is displaying some states information and allows ...
5
votes
2answers
4k views

Disable interactive SSH at user-level

I connect to a server I don't control via SSH. I use public key access and don't need to be able to connect with a keyboard-interactive password. I would like to disable keyboard-interactive access ...
5
votes
2answers
13k views

How do I SSH and remove all previous SSH activity history?

I want to remove any and all activity logs for SSH remotely. How do I get to it? My account on the remote server doesn't have admin privilege, and as such I just want to remove user to user ...
5
votes
1answer
7k views

Shutting down a computer remotely

What ways are there to shut down a computer remotely? My desktop is running Ubuntu 11.04 desktop edition and when I try to shut it down remotely using ssh, it doesn't actually work. I used the ...
5
votes
2answers
864 views

Why are there two ssh daemons running in top?

I have Ubuntu 10.04.1 , SSH server is running fine, but I wonder, why there are two sshd instead of one? Isn't one multithreades daemon enough? Is this an option?
5
votes
1answer
16k views

ssh-add command does not add my identity to ssh-agent

I just installed ubuntu 13.10 and I was about to add my identity to my ssh-agent so I open up a Terminal and did this bjorgvin@buntu:~$ ssh-add -l The agent has no identities. bjorgvin@buntu:~$ ...
5
votes
2answers
19k views

Connection timeout for ssh server

I'm trying to setup openssh-server, but I'm having some issues connecting. I changed the port to something non-standard (57757) and then set my router to forward to that port. On my LAN, I'm able to ...
5
votes
1answer
1k views

Enabling passphrase on an already existing private key

I already have a ssh private key without a passphrase. As I have started to use it to login to a few critical and secure systems, I need to use a passphrase on my RSA private key. How can I enable ...
5
votes
3answers
3k views

Can I ssh into my account without invoking .profile?

I want to ssh into my account, but I don't want the current version of my .profile login script to be executed. Is there a way to log in without running .profile? (Disclaimer: I found a work-around ...
5
votes
1answer
4k views

How do I set up a local SOCKS proxy that tunnels traffic through SSH?

Assume I have access to an SSH server that supports tunneling, and I am on a PC that is running *ubuntu, how do I set up a local SOCKS proxy that tunnels the traffic through that SSH server before ...
5
votes
2answers
6k views

ssh -L (error: bind: Address already in use)

Pretty simple, I know that this has happened to me before. Couldn't find a good answer on AU. I was running an ssh session with ports bound: ssh -L 3000:<server_name>:22 I just lost my ...
5
votes
1answer
13k views

gedit “cannot open display” , on remote computer , using ssh - Ubuntu 12.04 [duplicate]

Possible Duplicate: How do I run a graphical application on a remote server when logged in through ssh? I am getting the following error message when using ssh to log into a remote ...
5
votes
2answers
2k views

How do I terminate all idle incoming ssh connections?

I want to be able to automatically terminate ssh connections that are idle for more than 10 minutes. How do I do this?
5
votes
6answers
61k views

ssh -X “Xt error: Can't open display: :0.0”

I'm trying to open xterm on my remote server (Ubuntu Server 10.04) with ssh: ssh -X name@machine xterm but the error returned is: xterm Xt error: Can't open display: :0.0` I googled and tried ...
5
votes
1answer
9k views

SSH pubkey authentication works only if another session is already open

Permissions are set correctly on the server (chibi). If I do not have an existing ssh session open to the server, then all new sessions require a password. However if there's already one open, ...