SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

2
votes
2answers
522 views

I can create a file but I can't read from it

I've been using linux for a while, but I always had root access, so permission problems were no big deal. But now I don't have root access and it's driving me mad. I have a ssh access to a web ...
3
votes
2answers
2k views

Is there a way to push shell config information when SSHing to a host?

I know how to set the GNOME-terminals (or xterms!) prompt to green/red regarding the last exit code: vi .bashrc export PROMPT_COMMAND='PS1="` if [[ \$? = "0" ]]; then echo "\\[\\033[0;32m\\]"; else ...
1
vote
1answer
466 views

How do I get QEMU to open without a BadWindow error after ssh'ing with X11 forwarding?

After ssh'ing to a machine (with -X) I run qemu and get the following: X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 25 (X_SendEvent) Resource ...
4
votes
3answers
802 views

DynDNS alternative for SSH?

I have an server that has a dynamic IP address and is accessible over SSH. On the server, a script uploads a text file containing the server's public IP address to a web location whenever that address ...
3
votes
1answer
901 views

Running vim on a remote Linux machine “freezes” OS X SSH connection

(cross-posted this from SuperUser as the question seems more relevant to this audience) I am attempting to SSH to a Linux (Fedora 14) machine and then open up vim to edit a file, however on my new ...
3
votes
1answer
318 views

Looking for information on the FISH protocol

What I have found about fish:// (the kio protocol) is old and often incomplete. Is there anything that's new? Like a primer? Or is this something to put on the KDE todo list?
4
votes
1answer
6k views

Chrooted SFTP with full access to SSH stopped working (Debian)

I've got a home server on Debian 6 for backups. I'd like to setup chrooted SFTP environment with SSH access for some users (only for my knowledge, there are two users now). It almost works or rather ...
8
votes
2answers
2k views

How to restrict an SSH user to only allow SSH-tunneling?

How can I restrict a user on the ssh server to allow them only the priviledges for SSH TUNNELING? i.e. So they cannot run commands even if they log in via ssh. My Linux servers are Ubuntu 11.04 and ...
5
votes
2answers
2k views

VPN like solution for SSH Tunneling?

Socksify like program for Fedora? Socksify, tsocks, proxycommand in ssh, they're great softwares/solutions that can be used to "constrain" given apps to use a SOCKS5 proxy (what was created with an ...
44
votes
13answers
66k views

SSH tunneling error: “channel 1: open failed: administratively prohibited: open failed”

When I open this ssh tunnel: ssh -nXNT -p 22 localhost -L 0.0.0.0:8984:remote:8983 I get this error when trying to access the HTTP server running on localhost:8984: channel 1: open failed: ...
21
votes
3answers
8k views

What is a better way to deal with server disconnects of sshfs mounts?

I have several directories mounted through sshfs. I sometimes get disconnects from the server (not configurable by me). I usually mount the directories like this sshfs ...
17
votes
3answers
13k views

Is it possible to set Gnome Terminal's title to “user@host” for whatever host I'm connected to?

I'd like to set the terminal title to user@host so I can easily tell which machine I'm connected to from the window title. Is there a way to do this from SSH or from GNOME Terminal?
32
votes
3answers
15k views

How can I break away from an SSH session that has crashed?

Many times I have an SSH session that doesn't respond anymore (for example, when I lose internet connection and then reconnect). Ctrl+C, Ctrl+D, Ctrl+Z and a zillion of key presses don't have any ...
0
votes
1answer
678 views

github ssh problem- permission denied(publickey)

I tried setting up git as shown in Github's help page, on Arch linux but there seems to be some problem with the SSH keys. It gives this error- Permission denied (publickey). This problem is ...
3
votes
1answer
901 views

Set up password-less SSH tunneling from home computer behind NAT to inside computer behind gateway

My home computer is behind an ISP-level NAT (and firewall). The target computer is work computer behind gateway. You have to log to gateway computer first via SSH (as it is the only one visible and ...
10
votes
3answers
1k views

How can I lock my own account from remote ssh login with password?

I don't want to disable remote login with password altogether, but I want to make it so that my account is only accessible with key pair authentication (there are other users who wants to use ...
6
votes
2answers
1k views

Should I be backing up my SSH host keys?

In my automated backups, I'm not sure if I should be doing this. If the hard drive fails or if I wipe the hard disk and start over, what will be the effect of starting with a new SSH host key to my ...
1
vote
1answer
1k views

How to monitor traffic when SSH tunneling?

If I run: ssh -fND localhost:6000 USERNAME@IPADDRESS -p PORTNUMBER and I set my webbrowser to use 127.0.0.1:6000 SOCKS5 proxy, is there a way for the remote SSH server to monitor my web traffic? ...
1
vote
4answers
1k views

How to prevent a program from dying when its ssh session dies?

I have a really old console application that I want to make a bit more resilient. The program is used this way: the user uses a custom terminal emulator to connect to a remote machine through ssh ...
0
votes
0answers
185 views

Is it possible to login via ssh to unlock LUKS drives? [duplicate]

Possible Duplicate: SSH to decrypt encrypted LVM during headless server boot? I have a large number of Ubuntu servers in co-location that I would like to use LUKS encrypted drives on. ...
6
votes
2answers
728 views

Configuring a vncserver so it's only accessible from my ssh tunnel

Since I use vnc through an ssh tunnel, is there any way I can block the open vnc port that the remote machine is listening on without it affecting my ability to use the ssh tunnel? Both machines are ...
2
votes
2answers
6k views

How do I log out of all my active sessions?

For some reason, I have a few open sessions on an SSH server that I don't know about. I assume they're leftovers from when my pipe broke. $ users user1 user2 user3 me me me me Is there a way to log ...
25
votes
4answers
5k views

Is there a way to communicate with someone at their desktop?

My wife is sitting at her home desktop, alpha, which is running a recent version of Ubuntu. I am on a bus, using ConnectBot on my G1 phone, and can SSH into alpha from wherever I am. For complicated ...
2
votes
2answers
1k views

SFTP with Mysql user pass instead of PAM

Is there a way for people to log onto a debian server via sftp using just mysql database table as authentaction. IE not adding a user to the system? I know it can be done over ftp and TLS but i ...
1
vote
0answers
151 views

How to chain SSH? [duplicate]

Possible Duplicate: Common multiple SSH connections file handling issue I want to reach hosts that are only indirectly accessible with SSH/SCP/SFTP. Are there more solutions for this? Are ...
3
votes
2answers
979 views

System hangs on shutdown/restart - is ssh involved?

If I ssh into my server and do 'shutdown -r now', the shutdown hangs on the message 'Sending processes the KILL signal', and I have to walk into the lab and use the power button to force a shutdown. ...
4
votes
1answer
2k views

Forwarding X11 over SSH if the server configuration doesn't allow it

Consider a situation where I'm logging in over SSH from machine A to machine B, I have an X session on machine A, and I want to run an X program on B. ssh -X B makes this work transparently. But what ...
67
votes
6answers
154k views

How to forward X over SSH from Ubuntu machine?

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 ...
5
votes
4answers
2k views

automatic passwordless ssh at login/restart

I want to have passwordless ssh to persist even after after I restart or logoff and then login. Somehow I have to run ssh-agent and use command ssh-add at login. In a tutorial I read that I should add ...
10
votes
4answers
7k 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 ...
3
votes
6answers
4k views

ssh user@IP sh <command> missed environment variables

I use an approach ssh user@IP sh [runme.sh] to execute script remotely, this works fine. But I got one problem, that is in runme.sh, I can't get any envirnoment variables which are defined in ...
3
votes
1answer
3k views

can not sftp: returns 128 “is the sftp server running”

I can ssh to my EC2 instance (amazon linux) (same user, from same machine, same certificate) however I can no longer use sftp. Logging in via WinScp (via my windows7 box) for SFTP used to work, but ...
6
votes
3answers
478 views

Pass my credentials from a ssh session to another ssh session

I want to ssh from A to B, using a particular private key that I have in A. Then I want to ssh from B to C using the same credentials that I used to ssh into B. Is it possible to "pass" the ...
6
votes
2answers
544 views

Is it possible to use one SSH key per account for each account on a given remote server?

Suppose I have a number of accounts on a server called SERVER. Let's call them ACCOUNT1, ACCOUNT2 and ACCOUNT3. Suppose I don't want to have to type in the password for the account each time I ssh ...
0
votes
1answer
630 views

Connect to linux device without SSH

Is there any way to connect to a device without using SSH? I've broken the keyboard on my Nokia N900 and want to get access to it. It must be possible?
4
votes
1answer
1k views

Does ssh compress connections in a tunnel individually?

I have one compressed SSH tunnel with one tunnel and multiple connections over it. Data in every connection tunneled is rather homogeneous, but compressing an interleaved stream will obviously make ...
7
votes
3answers
3k views

how to ssh to remote server and use local emacs to edit files?

Is there a way to use the emacs installed my local computer to access remote files I have in a remote server? I have googled and found out that I should use TrampMode however it is necessary for me to ...
10
votes
2answers
2k views

Detach/reattach an application run on X over SSH?

I have a development server that I leave running all the time, and a development laptop that I turn off/on everyday. I have a GUI application on the server that I'd like to run over SSH -X, and I'd ...
2
votes
4answers
689 views

different shell for root and non-root user

When I ssh as root, my shell is bash, but when it's a non-root user it is sh. How can I make them both to use bash? This actually goes against the logic in this question: Why root's default shell is ...
4
votes
4answers
345 views

SSH to untrusted machine

If I SSH to a remote server, is it be possible for the admins of that machine to use my SSH session to send data back down the connection and do something to my local PC? I use DSA keys and do not ...
3
votes
3answers
2k views

Accessing a linux machine with a name (not ip address)

When I access a linux machine with sshfs, I take the following steps. Get the ip address of the linux (the ip address is dynamically allocated to linux) Run sshfs id@ip_address:/HOME_DIRECTORY Can ...
0
votes
2answers
264 views

2 consecutive ssh logins [duplicate]

Possible Duplicate: Common multiple SSH connections file handling issue I used to do something like that often: home $> ssh user@server1 user@server1's password: server1 $> ssh ...
3
votes
1answer
232 views

ssh behavior for root and non-root user

When I ssh as root to a remote machine, the command output looks like this: root@Machine:/current/path#: However, if it's a non-root user, all I see is: $ How can I get the same behavior as for ...
1
vote
1answer
2k views

Cron: My crontabs don't seem to be doing anything at all

I think I'm missing something. I've set up some crontabs to handle rsyncs over ssh in my office to handle some backups, but they don't seem to be running OR logging, for that matter. Am I missing ...
3
votes
6answers
1k views

Common multiple SSH connections file handling issue

often I have to download a file that isn't directly accessable via the first SSH connection. For example I'm on a Windows machine and I want to access another machine that is only accessable from lan. ...
2
votes
2answers
1k views

setting up ssh public key

Okay, so I'm trying to setup a login for logging in with ssh, using a public key. First, I am using puttygen to generate a rsa-ssh2 public key using a passphrase. I followed the directions and ...
1
vote
1answer
1k views

Where to find file transfer history from a SSH client (Debian/Linux)?

Help!! Have you ever tried dragging a folder to another folder by mistake in a graphical SSH client? Well, I did this morning, and since I wanted it to stop immediately (I could see it was about to ...
3
votes
2answers
431 views

File permissions when transferring to another server

If I was to chmod 777 blah.sh on server A and then move it to server B, would it retain the permissions, or would it default to some other permissions once it hit server B?
3
votes
2answers
3k views

SSH slow at starting session

Starting an Interactive shell over SSH is slow to one of my servers. Everything leading up to it including negotiating encryption is fast, but then it hangs for 45 seconds. After that, it finishes ...
1
vote
3answers
1k views

How do i execute a remote script with 'screens'?

I need to execute a script locally. The problem is, it needs to use screen and send the ctrl d command. How would i do this? The script will be on my local windows machine. i can use winscp, putty, ...