Tagged Questions
SSH (Secure SHell) is a protocol for running commands on a remote computer.
2
votes
2answers
26 views
SSH pipe broke while running apt upgrade. What can I do about it?
I was connected to my aws debian wheezy server and while running apt-get upgrade the ssh pipe broke. I didn't use screen or anything, so I don't think there's a way to recover that session.
If I ...
0
votes
1answer
32 views
How to take screenshot of /dev/pts?
I am connecting to another server using ssh service.
I want to execute some commands (like creating users) on some servers and take the screenshot of the pseudo-terminal, which is to be stored on my ...
1
vote
1answer
24 views
How to check if SSH compression is enabled?
I am experiencing severe slowdown in Git checkouts from VM. I've been told that one of the reasons may be SSH compression (either enabled or disabled). How to check that is the state of compression ...
0
votes
1answer
32 views
Why is my server intermittently refusing ssh connections?
Background
I have an ssh and OwnCloud server. Frequently, my desktop's OwnCloud client disconnects. Attempting to ssh into my server results in Connection refused. I can ping the server, but cannot ...
0
votes
0answers
47 views
Password-less ssh authentication refuses to work [on hold]
I have looked at the similar questions but none of them address my issue. I have a CentOS 7 VirtualBox guest running in a Windows 7 host PC. I'm trying to get password-less ssh to work since I must ...
-1
votes
2answers
72 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
61 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
39 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? [closed]
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
43 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
33 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
45 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
26 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
51 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
60 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
22 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
43 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
99 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
22 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
21 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
57 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
47 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
33 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
21 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
72 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
121 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 ...
1
vote
0answers
50 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
13 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
14 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
78 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 [email protected] ...
3
votes
1answer
43 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
73 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
26 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
41 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
112 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
2answers
86 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?