diff --git a/connect.py b/connect.py index c099f13b0..e4e318b01 100755 --- a/connect.py +++ b/connect.py @@ -143,11 +143,13 @@ def connect(username, password, host, port): # set PS1 and msg it channel.send(ps1) channel.send(login_msg) + print channel.get_name() # Make ssh interactive tunnel posix_shell(channel, username, host) # shutdown channel socket + channel.close() ssh.close() diff --git a/jasset/__init__.py b/jasset/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/jasset/admin.py b/jasset/admin.py new file mode 100644 index 000000000..8c38f3f3d --- /dev/null +++ b/jasset/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/jasset/migrations/__init__.py b/jasset/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/jasset/models.py b/jasset/models.py new file mode 100644 index 000000000..71a836239 --- /dev/null +++ b/jasset/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/jasset/tests.py b/jasset/tests.py new file mode 100644 index 000000000..7ce503c2d --- /dev/null +++ b/jasset/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/jasset/views.py b/jasset/views.py new file mode 100644 index 000000000..91ea44a21 --- /dev/null +++ b/jasset/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/juser/__init__.py b/juser/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/juser/admin.py b/juser/admin.py new file mode 100644 index 000000000..8c38f3f3d --- /dev/null +++ b/juser/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/juser/migrations/__init__.py b/juser/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/juser/models.py b/juser/models.py new file mode 100644 index 000000000..71a836239 --- /dev/null +++ b/juser/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/juser/tests.py b/juser/tests.py new file mode 100644 index 000000000..7ce503c2d --- /dev/null +++ b/juser/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/juser/views.py b/juser/views.py new file mode 100644 index 000000000..91ea44a21 --- /dev/null +++ b/juser/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.