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

learn more… | top users | synonyms (1)

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
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
621 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
10k 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
617 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
484 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
192 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
1answer
184 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
934 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 ...
5
votes
4answers
42k 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
2answers
12k views

Encrypting Files and folder through terminal

I am new to part of encryption on Ubuntu . Is there any way to encrypt files and folder with password from terminal ? without using truecrypt or cryptkeeper etc.
5
votes
4answers
7k 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
970 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
11k views

How do I force SSH to only allow uses with a key to log in?

I tried following the instructions here: http://lani78.wordpress.com/2008/08/08/generate-a-ssh-key-and-disable-password-authentication-on-ubuntu-server/ to only allow users with a public key on the ...
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
12k 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
847 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
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
15k 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
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
2answers
18k 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
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
60k 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, ...
5
votes
2answers
5k views

How to enable SSH server in recovery mode?

How to enable SSH server in Ubuntu 10.10 Desktop Edition recovery mode? My display is not working (broken video card). So how can I do that "blindly"? :)
5
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 ...
5
votes
3answers
3k views

How can I run SSH as a different user on the same Ubuntu installation?

I am creating a script which runs a series of command that would download a website to a machine and sets up everything. So most of the commands require root access. For example adding a vhost in ...
5
votes
3answers
1k views

How do I inhibit suspend from the command line?

Is there a way to inhibit suspend/hibernate from the command line. I want to ssh into my home computer and not have it suspend while I'm working on it.
5
votes
1answer
1k views

Add an SSH option to an sftp URL in nautilus

I'm connecting to a remote server in Nautilus using an URL of the form sftp://server.com. However, due to a thing with that server I need to add an option when connecting via SSH, otherwise the login ...
5
votes
3answers
710 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: ...
5
votes
2answers
22k views

Why am I getting a “port 22: Connection refused” error?

I am getting a port 22: Connection refused error while connecting to a server. I have both the openssh client and server installed, and they are running. But still there is an error. Please ...
5
votes
1answer
3k views

Open a new tab in gnome-terminal and have it automatically connect via ssh

I find myself ssh-ing into another machine a lot at work. So much so, that I use it more than simply using the terminal on my own desktop. I know that (normally) when I open a new tab, it will ...
5
votes
1answer
1k views

SSH remote user need to be logged in?

I'm trying to set up an SSH server. I put my public key in the authorized_keys file, made sure the permissions were correct, etc. When I restart the server (really just Ubuntu 12.04 desktop) and I ...
5
votes
2answers
13k views

Git ssh error: port 22: no route to host

I tried to use set up git and use it for github, then when I followed the help doc, but when I got to step 5 of the set up ssh keys section :Test everything out , When I used this command: ssh -T ...
5
votes
2answers
2k views

Using Juju returns “ssh invalid key” error

Can someone tell me with piece of code is executed when i do: juju status. I'm running Juju on OpenStack and I want to deploy some services but when i do juju status it returns me an SSH INVALID KEY ...