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

learn more… | top users | synonyms

1
vote
2answers
551 views

SSH will not make a local connection without password prompt

While trying to set up a loop back ssh I am getting prompted for a password after a pub key install, this is a CentOS 6.4 server. ssh_config (grep -v ^# /etc/ssh/sshd_config | grep -v ^$) is here: ...
1
vote
1answer
789 views

How to set the TMOUT in Putty [duplicate]

I'm working in Linux. My connection to PuTTY times out very quickly and I need to have it remain active as long as I wish. I set the TMOUT in my Linux .profile but that has not seemed to make any ...
1
vote
1answer
541 views

ssh with sudo doesn't start services

I want to run command with sudo through ssh without disabling "requiretty" sudo option. According to /etc/sudoers: # # Disable "ssh hostname sudo <cmd>", because it will show the password in ...
1
vote
1answer
175 views

Tunnel HTTP traffic using another machine via SSH

I have this situation: server 1: public ip x.x.x.x private ip 192.168.0.1 server 2: private ip 192.168.0.10 The server 1 can reach the internet with both interfaces: ping -i x.x.x.x ...
1
vote
1answer
46 views

Reach service on VM with private address

I have this configuration: source: https://www.lucidchart.com/publicSegments/view/5256a1e5-afb0-4c7a-96fa-35750a00527d/image.png Basically, I have to reach a service which is running on the virtual ...
1
vote
2answers
1k views

SSH connection establishment too slow [duplicate]

I'm having issues while connecting to my Local Centos 6.3 VM with 500 MB ram. Below is the output of ssh -vvv localhost connection: OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading ...
1
vote
1answer
107 views

Detecting SSH timeout

Is there any way I could trigger a bash script when ssh times out? I have an alias to set the tmux title when starting ssh. The alias also includes a title change after the ssh session, which works ...
1
vote
4answers
279 views

ssh X forwarding web browser flash

I have a question regarding ssh X forwarding. Specifically when it comes to forwarding X program i.e. some web browser client, for example Iceweasel. X Server <--(request to display Iceweasel ...
1
vote
2answers
244 views

How long does a ssh connection last? [duplicate]

I've been looking around stackoverflow and it seems that SSH connections will disconnect when it doesn't see any packets for a while (2 hours?). Also, I looked in my /etc/ssh/ssh_config file and ...
1
vote
1answer
656 views

SSH alerts for outside IP addresses

So i have a script that emails me if a login is from anything besides an ip address that starts with "10.1.": #!/usr/bin/python import smtplib, os server = "10.10.10.10" From = ...
1
vote
1answer
114 views

SSH Authentication Mechanism

Doing a personal research project and I'm wondering: Why does SSH do its own mechanism negotiation rather than use SASL? At first I thought it might be to ensure confidentiality of the whole session, ...
1
vote
1answer
3k views

can't ssh into remote host with root, password incorrect

I have a remote host, previously I can ssh into it with root and password ssh root@remote_host or I ssh into it first using a regular user account ssh esolve@remote_host and then su root and ...
1
vote
1answer
219 views

Why is sshd looking at a non-existent public key file?

In an effort to get SSH keys working I'm tailing the sshd authorization log and I see these lines: debug1: test whether pkalg/pkblob are acceptable debug1: temporarily_use_uid: 10144/10029 (e=0/0) ...
1
vote
1answer
1k views

Passwordless ssh on archlinux (after ssh-copy-id still prompts for password) [duplicate]

On ubuntu/mint, all I need to do for passwordless ssh login is: ssh-keygen -t rsa # on both pc ssh-copy-id targetpc ssh targetpc # does not prompt from password anymore and that's all.. I do the ...
1
vote
1answer
129 views

doing an rsync across multiple machines

I have the following setup: Machines A, B , C running linux. I have to do a continuous rsync from machine A to machine C and have a script for that. However, the access to machine C from machine A is ...
1
vote
1answer
203 views

Why I'm still able to use ssh reverse tunnel after closing reverse ssh connection?

I have created a reverse ssh tunnel to connect to a computer behind NAT using: ssh -R 9050:localhost:22 user@middleserver in the destination system. I closed the terminal that I entered this ...
1
vote
1answer
775 views

Running an xterm remotely with ssh -Y, defies the coloring I setup in .Xresources

The xterm seems to not read the colors I set in my ~/.Xresources file when I connect to a Linux PC remotely. Basically, if I'm sitting in front of my PC and I run an xterm from Xsession, the colors ...
1
vote
2answers
234 views

How to view Graphical view of Application using ssh [duplicate]

Possible Duplicate: How to forward X over SSH from Ubuntu machine? Is it possible that I can view the GUI of application when I pass some command to Redhat linux Server using ssh. Like when ...
1
vote
1answer
233 views

Can SSH-Agent work from a remote bash script?

Server A needs to connect over svn+ssh to Server B to grab some source files for deploying on Server A. My deployment script runs from my local dev machine via: ssh serverA 'bash -s' < deploy.sh ...
1
vote
2answers
3k views

How to attach to remote machine's local display session over ssh?

Scenario: Linux mint is running on a machine at my home. I have some gui applications open on it. I'm away from home but want to get at the open applications. I have cygwin/x and I know how to ssh ...
1
vote
1answer
1k views

Using RSA private key from PuTTY in Filezilla

I have created an RSA private key using PuTTYgen. When I try to use it, I am notified that I can't use this encrypted key in Filezilla, so from the documentation I found that I need to use the Pageant ...
1
vote
1answer
161 views

SSH login to remote machine from another remote machine - How to manage connections?

Due to some security policy I had to ssh into a remote machine using another remote machine to which I ssh-ed. Here is the situation. I have access to BSD box at work and the access is only available ...
1
vote
1answer
468 views

Crontab with SVN and Git

I have some repos which are both in SVN and Git. My username is guyfawkes, and in my home directory I have folder www which contains all my repos. In this directory I also have file update.sh: ...
1
vote
2answers
825 views

SSH into Ubuntu VM remotely

I don't have much Linux or networking experience, but I'm trying to SSH into an Ubuntu virtual machine from outside of my home network. The Ubuntu virtual machine (running inside VirtualBox) is ...
1
vote
1answer
682 views

Is it possible to redirect X of an ssh session to the display of a connected vncviewer

I have a setup of three machines. Machine A runs a vncserver and an ssh server, Machine B runs a vncviewer, Machine C runs an ssh client. The vncviewer on B connects to the vnc server on A. The ...
1
vote
3answers
3k views

Opening files from Ubuntu server over ssh from Mac Terminal

So I SSH into a Ubuntu server and try to open the file in a Mac program (Coda) and get an error: Couldn't get a file descriptor referring to the console Using the command open myfile.html This ...
1
vote
2answers
5k views

Change default path for when I SSH in to CentOS server?

I have a CentOS 5.7 web server, and I want to change the default place I land in when connecting using SSH. Currently I land in /home/username, and I want to land in /home instead. I've gone in as ...
1
vote
1answer
1k views

How can I send data to the STDIN of a background process?

I'm trying to: Launch several ssh sessions (processes) through a script (Python) Communicate with the sessions by sending them commands via STDIN (even though they aren't open in my current ...
1
vote
1answer
521 views

What causes delay in my keystrokes on OSX's Terminal application?

I'm using the OSX application Terminal to work remotely on Amazon EC2 servers through SSH. Occasionally and seemingly randomly, my keystrokes are delayed. I've tried reconnecting, restarting ...
1
vote
1answer
262 views

Start up ssh connection on startup

I need to start a ssh connection to a proxy in order to have access to some resources. I have written the shell script and managed to run the script successfully. However, I found it very ...
1
vote
4answers
240 views

Access a linux machine from a windows machine

I have two laptops, one is installed with Ubuntu 10.04, the other one is installed with Windows XP. The Ubuntu laptop is located in one place with internet connection while the windows laptop is in ...
1
vote
1answer
96 views

If I SSH into a remote machine and my connection gets dropped, then is there a chance that the run I made will continue on?

Or will the run halt along with everything (though maybe partial progress could be made if I use a ">" to print progress so far to a file)
1
vote
2answers
5k 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 ...
1
vote
1answer
350 views

ssh problems only when connecting from remote IP

When I try to connect from a remote computer that is not in the local network via ssh I get into trouble... When I try to execute a TUI application it hangs and I cant do anything... I type ./menu ...
1
vote
1answer
68 views

Running commands after ampersand symbol & in a remote ssh session

I have a shell script that initiates a long, resource-intensive command on several different machines. In order to execute the script on each machine in parallel, I have an ampersand symbol after ...
1
vote
5answers
51 views

SSH login and /tmp on 100%

Not counting the reserved space by root (usually 5%), if the /tmp is really 100% full, so 0 bytes free, why couldn't we log in to the machine via ssh? We only got the error message "cannot fork". ...
1
vote
1answer
61 views

ssh as super user

I did the following mistake on a remote server : # sudo chmod 700 / Now no user but root can do anything. I can't even ssh as a normal user anymore, since I don't have permission to access bash. ...
1
vote
1answer
57 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 ...
1
vote
1answer
32 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 ...
1
vote
3answers
84 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
41 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 ...
1
vote
1answer
53 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
1answer
21 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 ...
1
vote
1answer
46 views

Accidentally garbled a bunch of file names in /tmp… ssh keys asking for passwords

I accidentally garbled the file names of the contents of my /tmp directory (don't ask) to the point where they're not recoverable. Since doing so, I'm always asked for the password to my ssh keys ...
1
vote
1answer
248 views

slow ssh login to a remote machine

I am experiencing slow ssh login from a machine to a remote machine. The verbose of ssh is shown below in two broken blocks. ssh freezes for 15 seconds in the below shown block. [root@zabbix ~]# ssh ...
1
vote
1answer
66 views

How to check my account on embedded linux without “/etc/passwd”?

On some embedded linux systems, there is no /etc/passwd file and /etc directory is not writable (which means I cannot set user account and password?). Then what is my (default) account name and ...
1
vote
2answers
179 views

Using exec in find over ssh from shell script

So, I am attempting to execute the following from within a shell script; ssh -q $CUR_HOST "cd $LOGS_DIR; echo cd $LOGS_DIR; find . -name *.log -mmin +1440 -exec gzip {} \; exit" When this runs, it ...
1
vote
2answers
44 views

Is it necessary to disown a process for it to continue running after disconnecting?

Would someone be kind enough to explain if & why disown is necessary if you wish to keep a job running even after you disconnect. I ask because every site I have visited says to use disown and bg ...
1
vote
2answers
1k views

MaxStartups and MaxSessions configurations parameter for ssh connections?

I am copying the files from machineB and machineC into machineA as I am running my below shell script on machineA. If the files is not there in machineB then it should be there in machineC for sure ...
1
vote
1answer
211 views

Autocomplete server names for SSH and SCP

I have a few servers configured in ~/.ssh/config, such as alpha and beta. How might I configure Bash such that the commands ssh al<tab> and scp file.tgz al<tab> autocomplete the names of ...