Skip to content
Advertisement

Tag: ssh

How can i save automatically the SSH_CLIENT at login?

i want to save the user’s IP when he connects to it’s home folder, this is because i’m a user in a server where my team has a folder where our public_html is located, but we use the same account, so i just want to register who connected. So i want to make a script that triggers when a connection

How to use a sql DB for ssh?

I have a webapplication and I would like to provide the users with a feature to be able to ssh to the linux server without having to add all the users’ credentials from the Psql DB to the linux server. Instead I would like to use the credentials directly for ssh. I think that this is possible using linux pluggable

How to find the FQDN of an Azure VM

I just spun up a new Azure VM from the portal. I want to find the FQDN of the said portal so that I can connect to it via SSH, using this scheme: ssh username@FQDN -p 22 Can anyone tell me where to look? I’ve spent many hours trying to do this, but to no avail. Answer For you to

How to clear terminal window after TMOUT

I want to see if there is a way to have the terminal windows cleared after a TMOUT session timeout and disconnect. Does anyone know of a way to have the screen cleared once it times out? Answer Set an exit trap in your .bashrc file When the shell exits, it executes the clear command if TMOUT is set to

Create user on remote linux with Jenkins

I need to run a ssh script on a remote linux server to add a user but nothing I do quite works. I make up the username of 2 Parameters and then try to make the password of which the first part is a set string but the second part is also a Parameter. I am using the Jenkins SSH

SSH login between servers still asking for password, why?

I have two servers identified as server-1 – 192.168.3.128 and server-2 – 192.168.3.130. I am setting up capifony for automatic deployment from server-1 to server-2 and this is what I have done so far: In both servers I have created a user deploy without password since that’s the user I will use for deployment. In server-1 I setup a SSH

Specify output names on multiple files with curl using ranges

I am trying to download a few hundred URL’s and specify the output name for each, the only difference is an ID in the URL, such as ..something/1/something.., ..something/3/something.., ..something/4/something.. etc. I can use -o filename.zip but it will overwrite for each of the range of files, I am currently using: How can I output as this:? file1.zip, file3.zip, file4.zip,

Circular SSH Tunnel

Is is possible to create a circular SSH Tunnel? local1 >SSH_TUNNEL> remote1 >SSH_TUNNEL> local1 On “Remote1” I create a TAR that I want to pipe to STDOUT ( – ) … can I then TAR – . | >SSH_TUNNEL> local1 ssh user@remote1 “tar -cvf – . | ssh user@local1” I’ve googled and forum’d and googled some more … I can’t

Getting Output from Cisco C40 via Bash

Background We have a handful of Cisco C40s that I’m trying to automate via bash (although I’d be open to alternatives). I need to log into it, dial an IP, get back the call ID that’s returned, and then use that CallID to send a DTMF tone to the far end. I’m able to get about 90% of the way

Advertisement