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

learn more… | top users | synonyms

-1
votes
2answers
22 views

SSH: “Server refused our key” with no reason

I was trying to set up a simple backup script to run automatically that would copy a file from a Windows machine to a Linux one through SSH. As a lot of simple online tutorials suggest I used pscp ...
0
votes
1answer
35 views

How to ssh into remote machine and create new user in bash script

I am writing a bash script and would like to ssh into a remote machine and execute the adduser command. This is not working, all that I get is the --help text for adduser when I run the code below. ...
1
vote
1answer
29 views

Change SSH connection settings without disconnecting?

I watched the The Black Magic Of SSH video and lecturer in this video drops to SSH shell with some key-combination. How did he do that?
0
votes
0answers
14 views

how to build a Public Access Unix server? [on hold]

I have seen grex.org, and would like to create a public access Linux server. I know how to set up an ssh server, but What I want more detail on is how to allow new users to create accounts which i ...
1
vote
1answer
39 views

How to send a mail when someone remote connects to my server

I would like my server to send a mail to me when someone connects remotely over ssh to my server. who only gives me back the Username, TerminalID and Date. I cannot use only that, I need to check ...
0
votes
2answers
28 views

SSH into Windows Server '08 from Mint 14 - “permission denied”

So I have been trying every which way to get into my Server '08 box via SSH. I have tried FreeSSHD and Cygwin. Everything works fine when I am using simple SHA pass authentication, but the moment I ...
-1
votes
1answer
41 views

Connect via SSH with hostname instead of username and hostname

Whenever I have to login to a remote server, I have to enter ssh username@hostname and subsequently a password. I want to save time by omitting some parameters whenever I try to login to a server. I ...
0
votes
1answer
22 views

Binvox not working on a headless Linux server

I'm trying to run Binvox (http://www.cs.princeton.edu/~min/binvox/) via web server, on an Amazon EC2 server with Nvidia GRID K520 GPU and running Ubuntu 14.04. I'm using the system(binvox, $ret) ...
4
votes
1answer
45 views

Provide sftp read/write access to folder and subfolders, restrict all else

I need to provide user access to Ubuntu 14.04 Server, only limited to certain folder. To enjoy the ssh security and not to open up new service and ports (ie, ftp), I'd like to stick with sftp. ...
1
vote
0answers
8 views

How to SFTP through proxy if there is no netcat? [duplicate]

sftp -v -oProxyCommand="nc -v PROXY_IP_HERE PROXY_PORT_HERE %h %p" user@remote_sftp_server.com 22 How can I do this if I don't have netcat installed? I don't have permission to install it, even in ...
4
votes
0answers
51 views

Immortal SSH Session

I've got a little TurnKey Linux Debian Squeeze VM that I use for SFTP. I had a user login and transfer a file the other day and now I can't seem to kill the session. I'm still a little shaky in ...
1
vote
1answer
21 views

Keychain SSH Key Manager prevents SFTP login on CentOS

I installed keychain and added this to my .bashrc in CentOs to help manage my SSH Keys: /usr/bin/keychain --clear $HOME/.ssh/id_rsa source $HOME/.keychain/$HOSTNAME-sh So on SSH login I am prompted ...
2
votes
3answers
37 views

Redirect SSH user server side

I know that I can create shortcuts for specific users/servers on the client side via ~/.ssh/config or /etc/ssh/ssh_config, but I would like to do something similar but on the server side. That is, ...
3
votes
0answers
63 views
+100

“PTY allocation request failed on channel 0 stdin: is not a tty” when SSH'ing into a Debian server

My hosting space (Debian Wheezy) serves two websites (one WordPress and one Rails). Today I saw both were down and I rebooted the server. The Rails site works again and the WordPress one now says that ...
2
votes
2answers
21 views

Characters are encoded twice when I ask SSH to reattach a screen session on the remote host

I want to be able to SSH to a remote host and restore a screen session with one command. Both hosts use UTF-8 locale. My problem is that then, inside the screen session, characters are encoded twice. ...
0
votes
0answers
27 views

How do I stop PuTTY becoming unresponsive to input when displaying large amounts of text? [migrated]

I use a windows 7 machine to ssh into a remote Linux machine using PuTTY 0.62. When I accidentally forget to stream the output to a file and run a program that prints a lot of data to the screen I ...
3
votes
1answer
19 views

How do you verify if an INCOMING ssh tunnel is still up and who it belongs to?

See edit below for short version I am having issues displaying the status of the ssh tunnels on our server. Here is some relevant info: user001 = remote client's username 123.123.123.123 = ssh ...
1
vote
2answers
55 views

New users cannot connect to server via SSH

An SSH server using RSA keys for authentication is running on Ubuntu 14.04. My original account can connect to the server using SSH (PuTTY). However, the following issue occurs: Disconnected: No ...
1
vote
3answers
46 views

Using nohup to keep a script running indefinitely

I am very new to Linux and I've only been using it to SSH to my web server using Putty. The issue I am having is this: Basically I've got 2 php scripts. One get_tweets.php constantly listens for ...
1
vote
1answer
28 views

How do I troubleshoot ssh tunnels disconnection?

I am using SSH tunnels launched via autossh at boot on a device installed at remote locations. Up to now everything was working fine but yesterday the connection partly went down and autossh wouldn't ...
1
vote
1answer
19 views

VNC & SSH : local (win-putty) -> hop (linux) -> remote (linux)

I'm gettin a headache trying to access a remote VLC & SSH. This is the situation : Local : Win box behind NAT, dynamic IP. I want to connect from here. Hop : Linux box, static IP server Remote ...
3
votes
2answers
70 views

Shell loses keypresses when running SSH in the background

I'm experiencing a bizarre problem with SSH + Bash + Terminal.app: when SSH is run in the background, the shell appears to randomly lose keypresses ~50% of the time. For example, if I run: $ ssh -N ...
1
vote
1answer
119 views

Identify the outgoing connection (ssh) with the who command

After a ssh connection, if I run the who command on the server : I have this response : olivia@olivia-pc:~$ who olivia :0 2014-09-08 11:40 (:0) olivia pts/0 2014-09-08 11:43 ...
0
votes
0answers
40 views

Cannot ssh from my laptop [closed]

I have a server on Linode and I'm trying to ssh from my laptop. I'm getting permission denied. I'm trying the same from a different laptop and it is working fine. I'm not understanding the issue. can ...
1
vote
0answers
47 views

Cannot SSH after switching to Netgear router

I have Comcast Xfinity internet. When I was sent their Wifi router/Cable modem combo box, I was able to use SSH perfectly. However, since the Wifi from the box was weak, I decided to buy my own ...
3
votes
0answers
20 views

Operation timeout (in /var/log/secure)

Sometimes when connecting via ssh to my RHEL server, I get the following message back from the client: Operation Timeout Seems like a network problem, but when I look at /var/log/secure on the ...
0
votes
0answers
12 views

rogue ssh (+svn?) process trying to connect to a remote server

I am using a remote server via ssh, svn, and sometimes with FileZilla all running on Mac OS 10.9.4. I connect to the server with no problems (i.e. my credentials pass every time I enter them). ...
1
vote
1answer
31 views

Avoid trapping by ssh ProxyCommand

I have the following lines in my .ssh/config: Host localhost ProxyCommand none Host n0* ProxyCommand none Host * ProxyCommand corkscrew proxy.m.com 80 myserv 443 ~/.ssh/auth i.e. for localhost and ...
0
votes
0answers
13 views

Remote dbus-send error: Error org.freedesktop.DBus.Error.ServiceUnknown: The name project.AppManager.Service was not provided by any .service files

I'm trying to execute dbus-send over a ssh sesion[in remote target].The dbus service is already launched by the systemd and I just want to call a method of that service through dbus-send ...
15
votes
3answers
1k views

How to tell if SSH'd into machine? [duplicate]

Is it possible to tell if a terminal is SSH'd into a machine ? some kind of command to do this for me and execute something if I am SSHd?
3
votes
3answers
77 views

SSH - Is it possible for an SSH session to take complete control of the client? [duplicate]

When I open a SSH session on my terminal to a remote server, is this only a virtual terminal, or is it possible for the SSH server that I am connected to to "take control" of my terminal? For example, ...
1
vote
1answer
40 views

SSH key-only remote login, is disabling password a good practice?

I need a maintenance user which only requires a remote login. I'll preferably use only public keys to login into the account. I thought of just creating the user with useradd myuser, adding later the ...
1
vote
2answers
75 views

Run `dbus-send` in a remote system

I'm trying to run dbus-send in a remote system but somehow I'm not able to run it. But the same dbus-send, if I run it in the local system, is working fine. COMMAND: ssh remote@xx.xx.xx.xxx ...
3
votes
1answer
38 views

How do I stop ssh-agent trying all keys with agent forwarding?

Often I'll connect via SSH to VM instances to deploy code from private Bitbucket repositories, cloning repositories via git over SSH. Today I was getting the error: conq: repository access denied. ...
1
vote
0answers
69 views

Load a background image or set the background color if Konsole/Shell is running SSH

I want to set my laptop to load an image in the shell's background or set the background color to red if I'm connected via SSH. How can this be done? With a bash function in .bashrc? I have: Set the ...
1
vote
0answers
10 views

xvfb-run aborting on cluster

I'm trying to run a python script with xvfb-run on a cluster using SLURM; when I use an interactive session (srun) it works fine, but when submitting to a queue (sbatch) it aborts/fails without much ...
1
vote
1answer
18 views

How does ssh server defines which key to use first having more than 1?

I have just found out that on my Ubuntu machine I have more public keys to serve in /etc/ssh directory: $ ll /etc/ssh total 296K -rw-r--r-- 1 root root 237K lip 3 2013 moduli -rw-r--r-- 1 root root ...
0
votes
4answers
48 views

Backup remote management protocol in case of faulty SSH server

I have a remote computer which I currently cannot access with SSH. The computer responds to ping but SSH gives connection refused, so I suspect the ssh-server is not working for some reason. What ...
1
vote
0answers
27 views

sshd suddenly wants a passphrase from Linux box, but not from windows (putty)

My Amazon EC2 instance running Ubuntu is no longer letting me ssh in via my local Linux system. I haven't changed a darned thing on either side but now it wants a passphrase and says nope when I ...
3
votes
1answer
92 views

SSH Public Key authentication - works only after a physical login

I am trying to connect via SSH to my ubuntu server with public key authentication. For some reasons I get an "Permission denied (publickey)." on the client, whenever I execute ssh -i ~/.ssh/id_rsa ...
1
vote
1answer
24 views

How can I run ssh-add on demand? Can it act as SSH_ASKPASS?

I want to ssh from user@local to user@remote several times per day with an encrypted SSH key, a situation which ssh-agent handles with a good trade-off between security and usability. I'd also like ...
1
vote
1answer
40 views

Sourcing bashrc file fails with ssh -t

ssh -vvv -F /home/me/.ssh/config serva -t "source ~/.bashrc" This is the output I get when I use -vvv flag: debug1: Authentication succeeded (publickey). debug1: channel 0: new ...
1
vote
2answers
104 views

I want to suppress “no access to tty” error message?

I have a bash script where I use ssh to connect to another server and run some commands there. I found some sites that the error (Warning: no access to tty (Bad file descriptor). Thus no job control ...
1
vote
1answer
73 views

Why can't I use public/private key authentication with ssh on Arch Linux?

I have the following setup on an Ubuntu machine: ~/dotfiles/authorized_keys2 ~/.ssh/authorized_keys2 -> /home/wayne/dotfiles/authorized_keys2 I had the same setup on my Arch machine, but when I ...
0
votes
0answers
8 views

tmux session stops updating screen randomly

I use tmux 1.6-2 on a Debian 7.6 (wheezy). I open a new session and start a long running script that gives updates in form of a progress bar and an activity indicator (spinning bar: /-\|/ ). When ...
4
votes
1answer
35 views

Can I move a running application to a different X server?

Is there any way to open a graphical program (for instance, gedit) while using X11 forwarding over SSH and transfer the X server connection back to the X server on the SSH host?
7
votes
2answers
141 views

Stop ssh config on first match

I have a added a local proxy for all my hosts in my .ssh config, however I want to shell into my local vm without the proxy command. Output of my ssh attempt: debug1: /Users/bbarbour/.ssh/config ...
0
votes
0answers
33 views

Difficulty Installing SSH on Oracle RHEL 5.5

I am having difficulty installing SSH on RHEL 5.5 - I have disabled my Firewall and SELinux. I have gone through: Oracle Docs, to see if SSH is enabled, but I got: To check if SSH is enabled: # ...
0
votes
0answers
23 views

Why would SSH server not accept forwarded Kerberos ticket?

I have an environment where I can SSH in using forwarded Kerberos credentials (using ASP.NET delegation), however in another I cannot. I have GSSAPIAuthentication yes in the ~/.ssh/config on each ...
0
votes
2answers
106 views

Login by ssh , exec one command and i don't want to quit the bash

I want to change PS1 when i ssh another centos strshell = 'PS1="remote!"' os.system("ssh -i %s -l%s -p%s %s %s"%(SSH_KEY,SSH_USER,SSH_PORT,des,strshell)) ssh quit automatically. I want to ...