Questions tagged as 'ssh'

1
answer

Include file in Java project

I have a code that runs routines inside Linux servers and I access using public keys. When the project is in my pc (development), everything works because in the code I specify the location of the key that is in my machine, but when generating a...
asked by 19.07.2017 / 20:37
2
answers

I need to connect to an SSH FTP server in PHP

I have this code: <?php $ftp_server="MEUHOST.COM"; $conn_id = ftp_connect($ftp_server, 2222) or die("Couldn't connect to $ftp_server"); if (!ftp_connect($ftp_server)) echo "not connected"; else echo "successful connected"; ?> but it...
asked by 30.06.2017 / 15:16
1
answer

using SFTP in php 5.3 with phpseclib

I'm trying to use phpseclib to download with php 5.3. however I'm not getting it to work. My test is this code: <html> <head> <meta charset="UTF-8"> <title></title>...
asked by 18.04.2017 / 20:28
1
answer

Backup mysql with create schema

I need to do the backup of a database (DUMP) that comes with create schema . What command line using PUTTY (via SSH) to do such a task? I researched and found this command but it only backs up the tables and data. mysqldump -h HO...
asked by 22.02.2016 / 17:54
1
answer

Error generating maven / gitflow release

Hello, I have a Java application and I use Maven + gitflow to generate releases. I can make the clone via ssh / key without problem. But in the hour of running the command mvn jgitflow:release-start The following error is thrown: Caused b...
asked by 27.02.2015 / 17:38
1
answer

SSH - Change the default session path

How do I start my SSH session in a specific folder, instead of going to ~ / (/ home / user_name /).     
asked by 02.07.2014 / 05:09
0
answers

Is it possible to use RSYNC together with GITHUB? SSH

Can I send the backup of my files to Github by ssh using rsync ? In Github you have the option of SSH . EX: rsync -rav -e ssh [email protected]:username/repo.git /var/html/     
asked by 22.11.2018 / 01:05
1
answer

Automate connection in putty through 2fa (batch)

I wanted to know how to automate the connection on Putty using a batch. The script for in 2fa, using the password parameter as code 2fa. There is no point in duplicating the parameter. cmd line to connect: start putty -ssh usuario@ipdama...
asked by 23.10.2018 / 20:59
1
answer

Create database and MongoDB user via shell

I need to create a MongoDB database and user, but everything via shell. I found something about --eval and --shell, but I could not get it to work, I'm trying this way: mongo mongodb://11.11.123.321:27017 --eval "db.createUser({user: "...
asked by 28.09.2018 / 22:44
0
answers

Connect to host X port 22: Connection timed out

I'm using Forge to manage an application using Laravel. I created several droplets on DigitalOcean and added an SSH key to access it. Everything was working fine, but now, when I try to connect to any of the droplets via SSH, this message...
asked by 21.08.2018 / 18:30